Uploaded image for project: 'Thorntail'
  1. Thorntail
  2. THORN-549

Creating project from generator cannot compile as JARs cannot download

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: None
    • Fix Version/s: 2016.9
    • Component/s: None
    • Labels:
      None
    • Sprint:
      2016.9

      Description

      Just selected JAX-RS-CDI from the generator web site, and then ran mvn clean install to compile the code, and it fails because it cannot download some JARs

      davsclaus:/Users/davsclaus/Downloads/forge-web/$ mvn clean install
      [INFO] Scanning for projects...
      [INFO]
      [INFO] ------------------------------------------------------------------------
      [INFO] Building Wildfly Swarm Example 1.0.0-SNAPSHOT
      [INFO] ------------------------------------------------------------------------
      Downloading: https://repo.maven.apache.org/maven2/org/glassfish/javax.el-impl/3.0.1-b08-jbossorg-1/javax.el-impl-3.0.1-b08-jbossorg-1.pom
      [WARNING] The POM for org.glassfish:javax.el-impl:jar:3.0.1-b08-jbossorg-1 is missing, no dependency information available
      Downloading: https://repo.maven.apache.org/maven2/org/wildfly/swarm/security-api/1.0.2.Final/security-api-1.0.2.Final.pom
      Downloaded: https://repo.maven.apache.org/maven2/org/wildfly/swarm/security-api/1.0.2.Final/security-api-1.0.2.Final.pom (0 B at 0.0 KB/sec)
      Downloading: https://repo.maven.apache.org/maven2/org/slf4j/slf4j-api/1.7.7.jbossorg-1/slf4j-api-1.7.7.jbossorg-1.pom
      [WARNING] The POM for org.slf4j:slf4j-api:jar:1.7.7.jbossorg-1 is missing, no dependency information available
      Downloading: https://repo.maven.apache.org/maven2/org/slf4j/jcl-over-slf4j/1.7.7.jbossorg-1/jcl-over-slf4j-1.7.7.jbossorg-1.pom
      [WARNING] The POM for org.slf4j:jcl-over-slf4j:jar:1.7.7.jbossorg-1 is missing, no dependency information available
      Downloading: https://repo.maven.apache.org/maven2/org/wildfly/swarm/jaxrs-cdi/1.0.2.Final/jaxrs-cdi-1.0.2.Final.jar
      Downloading: https://repo.maven.apache.org/maven2/org/wildfly/swarm/jaxrs/1.0.2.Final/jaxrs-1.0.2.Final.jar
      Downloading: https://repo.maven.apache.org/maven2/org/wildfly/swarm/config-api-runtime/0.4.4/config-api-runtime-0.4.4.jar
      Downloading: https://repo.maven.apache.org/maven2/org/wildfly/swarm/jaxrs-api/1.0.2.Final/jaxrs-api-1.0.2.Final.jar
      Downloading: https://repo.maven.apache.org/maven2/org/wildfly/swarm/jaxrs-modules/1.0.2.Final/jaxrs-modules-1.0.2.Final.jar
      Downloaded: https://repo.maven.apache.org/maven2/org/wildfly/swarm/config-api-runtime/0.4.4/config-api-runtime-0.4.4.jar (0 B at 0.0 KB/sec)
      Downloading: https://repo.maven.apache.org/maven2/org/wildfly/swarm/security/1.0.2.Final/security-1.0.2.Final.jar
      Downloaded: https://repo.maven.apache.org/maven2/org/wildfly/swarm/security/1.0.2.Final/security-1.0.2.Final.jar (3 KB at 18.0 KB/sec)
      Downloading: https://repo.maven.apache.org/maven2/org/wildfly/swarm/security-api/1.0.2.Final/security-api-1.0.2.Final.jar
      Downloaded: https://repo.maven.apache.org/maven2/org/wildfly/swarm/jaxrs/1.0.2.Final/jaxrs-1.0.2.Final.jar (3 KB at 9.9 KB/sec)
      Downloading: https://repo.maven.apache.org/maven2/org/glassfish/javax.el-impl/3.0.1-b08-jbossorg-1/javax.el-impl-3.0.1-b08-jbossorg-1.jar
      Downloaded: https://repo.maven.apache.org/maven2/org/wildfly/swarm/security-api/1.0.2.Final/security-api-1.0.2.Final.jar (0 B at 0.0 KB/sec)
      Downloading: https://repo.maven.apache.org/maven2/org/slf4j/slf4j-api/1.7.7.jbossorg-1/slf4j-api-1.7.7.jbossorg-1.jar
      Downloading: https://repo.maven.apache.org/maven2/org/slf4j/jcl-over-slf4j/1.7.7.jbossorg-1/jcl-over-slf4j-1.7.7.jbossorg-1.jar
      Downloaded: https://repo.maven.apache.org/maven2/org/wildfly/swarm/jaxrs-modules/1.0.2.Final/jaxrs-modules-1.0.2.Final.jar (29 KB at 138.2 KB/sec)
      Downloaded: https://repo.maven.apache.org/maven2/org/wildfly/swarm/jaxrs-cdi/1.0.2.Final/jaxrs-cdi-1.0.2.Final.jar (6 KB at 17.6 KB/sec)
      Downloaded: https://repo.maven.apache.org/maven2/org/wildfly/swarm/jaxrs-api/1.0.2.Final/jaxrs-api-1.0.2.Final.jar (17 KB at 67.8 KB/sec)
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD FAILURE
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 3.459 s
      [INFO] Finished at: 2016-07-08T11:14:33+02:00
      [INFO] Final Memory: 28M/363M
      [INFO] ------------------------------------------------------------------------
      [ERROR] Failed to execute goal on project forge-web: Could not resolve dependencies for project io.fabric8.forge:forge-web:war:1.0.0-SNAPSHOT: The following artifacts could not be resolved: org.glassfish:javax.el-impl:jar:3.0.1-b08-jbossorg-1, org.slf4j:slf4j-api:jar:1.7.7.jbossorg-1, org.slf4j:jcl-over-slf4j:jar:1.7.7.jbossorg-1: Could not find artifact org.glassfish:javax.el-impl:jar:3.0.1-b08-jbossorg-1 in central (https://repo.maven.apache.org/maven2) -> [Help 1]

      As you can see its some JARs that has jbossorg-1 in the version number which is not in Maven Central.

      You need to add some jboss repo to the pom.xml file to make this work.

      
          <repositories>
              <repository>
                  <id>jboss-public-repository-group</id>
                  <name>JBoss Public Repository Group</name>
                  <url>https://repository.jboss.org/nexus/content/groups/public/</url>
                  <releases>
                      <enabled>true</enabled>
                      <updatePolicy>never</updatePolicy>
                  </releases>
                  <snapshots>
                      <enabled>true</enabled>
                      <updatePolicy>daily</updatePolicy>
                  </snapshots>
              </repository>
          </repositories>
      

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                gastaldi George Gastaldi
                Reporter:
                davsclaus Claus Ibsen
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: