1 Reply Latest reply on Aug 4, 2011 5:35 AM by jaikiran

    AS7 Extension Maven Artifact Id = jboss-as-subsystem Fails

    kimbaltrue

      As described in the Extending JBoss AS7 documentation https://docs.jboss.org/author/display/AS7/Extending+JBoss+AS+7

       

      I executed the following Maven command:

       

      mvn archetype:generate -DarchetypeArtifactId=jboss-as-subsystem

                                         -DarchetypeGroupId=org.jboss.as.archetypes

                                         -DarchetypeVersion=7.0.0.Final

                                         -DarchetypeRepository=http://repository.jboss.org/nexus/content/groups/public

       

      The command creates the project, but when I change directory into the new project directory and run the next command:

       

      mvn install

       

      The project fails to build. It appears thatthe repository is empty or not accessible.

       

      Here is the output of "mvn install"

       

      >mvn install

      [INFO] Scanning for projects...

      [INFO]

      [INFO] ------------------------------------------------------------------------

      [INFO] Building JBoss Application Server: Subsystem Artifact 1.0-SNAPSHOT

      [INFO] ------------------------------------------------------------------------

      Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-resources-plugin/2.4.3/maven-resources-plugin-2.4.3.jar

      Downloaded: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-resources-plugin/2.4.3/maven-resources-plugin-2.4.3.jar (24

      KB at 49.4 KB/sec)

      Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-compiler-plugin/2.3.1/maven-compiler-plugin-2.3.1.jar

      Downloaded: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-compiler-plugin/2.3.1/maven-compiler-plugin-2.3.1.jar (30 K

      B at 81.1 KB/sec)

      Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-surefire-plugin/2.8.1/maven-surefire-plugin-2.8.1.jar

      Downloaded: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-surefire-plugin/2.8.1/maven-surefire-plugin-2.8.1.jar (30 K

      B at 93.3 KB/sec)

      Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-jar-plugin/2.3.1/maven-jar-plugin-2.3.1.jar

      Downloaded: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-jar-plugin/2.3.1/maven-jar-plugin-2.3.1.jar (32 KB at 80.5

      KB/sec)

      Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-antrun-plugin/1.6/maven-antrun-plugin-1.6.jar

      Downloaded: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-antrun-plugin/1.6/maven-antrun-plugin-1.6.jar (29 KB at 92.

      8 KB/sec)

      Downloading: http://repo1.maven.org/maven2/org/jboss/as/jboss-as-controller/7.0.0.Final/jboss-as-controller-7.0.0.Final.pom

      [WARNING] The POM for org.jboss.as:jboss-as-controller:jar:7.0.0.Final is missing, no dependency information available

      Downloading: http://repo1.maven.org/maven2/org/jboss/as/jboss-as-server/7.0.0.Final/jboss-as-server-7.0.0.Final.pom

      [WARNING] The POM for org.jboss.as:jboss-as-server:jar:7.0.0.Final is missing, no dependency information available

      Downloading: http://repo1.maven.org/maven2/org/jboss/as/jboss-as-controller/7.0.0.Final/jboss-as-controller-7.0.0.Final.jar

      Downloading: http://repo1.maven.org/maven2/junit/junit/4.8.2/junit-4.8.2.jar

      Downloading: http://repo1.maven.org/maven2/org/jboss/as/jboss-as-server/7.0.0.Final/jboss-as-server-7.0.0.Final.jar

      Downloaded: http://repo1.maven.org/maven2/junit/junit/4.8.2/junit-4.8.2.jar (232 KB at 174.8 KB/sec)

      [INFO] ------------------------------------------------------------------------

      [INFO] BUILD FAILURE

      [INFO] ------------------------------------------------------------------------

      [INFO] Total time: 4.758s

      [INFO] Finished at: Tue Aug 02 15:53:09 EDT 2011

      [INFO] Final Memory: 4M/74M

      [INFO] ------------------------------------------------------------------------

      [ERROR] Failed to execute goal on project metis-subsystem: Could not resolve dependencies for project org.ccf:metis-subsystem:jar:1.

      0-SNAPSHOT: The following artifacts could not be resolved: org.jboss.as:jboss-as-controller:jar:7.0.0.Final, org.jboss.as:jboss-as-s

      erver:jar:7.0.0.Final: Could not find artifact org.jboss.as:jboss-as-controller:jar:7.0.0.Final in central (http://repo1.maven.org/m

      aven2) -> [Help 1]

      [ERROR]

      [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.

      [ERROR] Re-run Maven using the -X switch to enable full debug logging.

      [ERROR]

      [ERROR] For more information about the errors and possible solutions, please read the following articles:

      [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException