Can't build JBoss AS 5.1.0 (any more?)
bha007 Mar 26, 2013 9:36 AMHi,
I have to do a little maintenance stuff on old JBoss 5.1.GA
So I did a fresh checkout
$ svn co http://anonsvn.jboss.org/repos/jbossas/tags/JBoss_5_1_0_GA/
$ cd JBoss_5_1_0_GA/build
$ ./build.sh
I'm not a mvn Guru but build does not start, here's what it gronks :
Searching for build.xml ...
Buildfile: /data/jboss_builds/src/svn/JBoss_5_1_0_GA/build/build.xml
maven-init:
[echo] Maven Home set to /data/jboss_builds/src/svn/JBoss_5_1_0_GA/tools/maven
maven-install:
[java] [INFO] Scanning for projects...
[java] [INFO] Reactor build order:
[java] [INFO] JBossAS Component Matrix
[java] [INFO] JBoss Application Server Parent POM
[java] [INFO] JBoss Application Server Thirdparty Build
[java] WAGON_VERSION: 1.0-beta-2
[java] [INFO] ------------------------------------------------------------------------
[java] [INFO] Building JBossAS Component Matrix
[java] [INFO] task-segment: [install]
[java] [INFO] ------------------------------------------------------------------------
[java] [INFO] [enforcer:enforce {execution: ban-bad-dependencies}]
[java] [INFO] [site:attach-descriptor]
[java] [INFO] Preparing source:jar
[java] [WARNING] Removing: jar from forked lifecycle, to prevent recursive invocation.
[java] [INFO] [enforcer:enforce {execution: ban-bad-dependencies}]
[java] [INFO] [source:jar {execution: attach-sources}]
[java] [INFO] [install:install]
[java] [INFO] Installing /data/jboss_builds/src/svn/JBoss_5_1_0_GA/component-matrix/pom.xml to /home/jboss_build/.m2/repository/org/jboss/jbossas/jboss-as-component-matrix/5.1.0.GA/jboss-as-component-matrix-5.1.0.GA.pom
[java] [INFO] ------------------------------------------------------------------------
[java] [INFO] Building JBoss Application Server Parent POM
[java] [INFO] task-segment: [install]
[java] [INFO] ------------------------------------------------------------------------
[java] [INFO] [enforcer:enforce {execution: ban-bad-dependencies}]
[java] [INFO] [enforcer:enforce {execution: enforce-java-maven-versions}]
[java] [INFO] [enforcer:enforce {execution: enforce-plugin-versions}]
[java] [INFO] [site:attach-descriptor]
[java] [INFO] Preparing source:jar
[java] [WARNING] Removing: jar from forked lifecycle, to prevent recursive invocation.
[java] [INFO] [enforcer:enforce {execution: ban-bad-dependencies}]
[java] [INFO] [enforcer:enforce {execution: enforce-java-maven-versions}]
[java] [INFO] [enforcer:enforce {execution: enforce-plugin-versions}]
[java] [INFO] [source:jar {execution: attach-sources}]
[java] [INFO] [install:install]
[java] [INFO] Installing /data/jboss_builds/src/svn/JBoss_5_1_0_GA/pom.xml to /home/jboss_build/.m2/repository/org/jboss/jbossas/jboss-as-parent/5.1.0.GA/jboss-as-parent-5.1.0.GA.pom
[java] [INFO] ------------------------------------------------------------------------
[java] [INFO] Building JBoss Application Server Thirdparty Build
[java] [INFO] task-segment: [install]
[java] [INFO] ------------------------------------------------------------------------
[java] Downloading: http://repository.jboss.org/maven2/org/jboss/maven/plugins/maven-jboss-license-plugin/1.0.0/maven-jboss-license-plugin-1.0.0.pom
[java] Downloading: http://repo1.maven.org/maven2/org/jboss/maven/plugins/maven-jboss-license-plugin/1.0.0/maven-jboss-license-plugin-1.0.0.pom
[java] Downloading: http://repository.jboss.org/maven2/org/jboss/maven/plugins/maven-jboss-license-plugin/1.0.0/maven-jboss-license-plugin-1.0.0.pom
[java] Downloading: http://repo1.maven.org/maven2/org/jboss/maven/plugins/maven-jboss-license-plugin/1.0.0/maven-jboss-license-plugin-1.0.0.pom
[java] [INFO] ------------------------------------------------------------------------
[java] [ERROR] BUILD ERROR
[java] [INFO] ------------------------------------------------------------------------
[java] [INFO] Error building POM (may not be this project's POM).
[java]
[java]
[java] Project ID: org.jboss.maven.plugins:maven-jboss-license-plugin
[java]
[java] Reason: POM 'org.jboss.maven.plugins:maven-jboss-license-plugin' not found in repository: Unable to download the artifact from any repository
[java]
[java] org.jboss.maven.plugins:maven-jboss-license-plugin:pom:1.0.0
[java]
[java] from the specified remote repositories:
[java] snapshots.jboss.org (http://snapshots.jboss.org/maven2),
[java] central (http://repo1.maven.org/maven2),
[java] repository.jboss.org (http://repository.jboss.org/maven2)
[java] for project org.jboss.maven.plugins:maven-jboss-license-plugin
[java]
[java]
[java] [INFO] ------------------------------------------------------------------------
[java] [INFO] For more information, run Maven with the -e switch
[java] [INFO] ------------------------------------------------------------------------
[java] [INFO] Total time: 10 seconds
[java] [INFO] Finished at: Tue Mar 26 12:51:50 CET 2013
[java] [INFO] Final Memory: 15M/37M
[java] [INFO] ------------------------------------------------------------------------
[java] Java Result: 1
BUILD FAILED
/data/jboss_builds/src/svn/JBoss_5_1_0_GA/build/build.xml:1084: Unable to build maven modules. See maven output for details.
Total time: 12 seconds
I tried manually above failing downloads:
...
2013-03-26 12:25:12 ERROR 403: Forbidden.
...
2013-03-26 12:25:21 ERROR 404: Not Found.
...
2013-03-26 12:25:39 ERROR 403: Forbidden.
...
2013-03-26 12:25:58 ERROR 404: Not Found.
How can I fix that?
Update:
Found out some active repo (https://maven-us.nuxeo.org/nexus/content/repositories/public/org/jboss/maven/plugins/maven-buildmagic-thirdparty-plugin)
But still looking where it has to be set up..
Update again :
Dug dug dug and found out that adding this in settings.xml seems to work...
<mirror> | |
<id></id> | |
<mirrorOf>repository.jboss.org</mirrorOf> | |
<name>nuxeo Mirror.</name> | |
<url>https://maven-us.nuxeo.org/nexus/content/repositories/public</url> | |
</mirror> |
Looks like it was a maven newby question...
Hope this could help anyone...