-
1. Re: build JBoss 5.1.0 GA from sources failed
pgier Jun 27, 2011 9:22 AM (in response to veit_ullmann)Those are all in the deprecated repository. So you need to add that to your settings.xml
-
2. Re: build JBoss 5.1.0 GA from sources failed
veit_ullmann Jun 27, 2011 4:09 PM (in response to pgier)Hi Paul,
I added the deprecated repository to my settings.xml and got the following error:
[java] [INFO] [enforcer:enforce {execution: ban-bad-dependencies}]
[java] [WARNING] Rule 0: org.apache.maven.plugins.enforcer.BannedDependencies failed with message:
[java] Found Banned Dependency: javax.xml.bind:jaxb-api:jar:2.1
[java] Found Banned Dependency: com.sun.xml.bind:jaxb-impl:jar:2.1.6
[java] Found Banned Dependency: javax.xml.stream:stax-api:jar:1.0
[java]
[java] [INFO] ------------------------------------------------------------------------
[java] [ERROR] BUILD ERROR
[java] [INFO] ------------------------------------------------------------------------
[java] [INFO] Some Enforcer rules have failed. Look above for specific messages explaining why the rule failed.
[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: Mon Jun 27 21:45:29 CEST 2011
[java] [INFO] Final Memory: 54M/158M
[java] [INFO] ------------------------------------------------------------------------
I fixed 6 of the missing artitacts (groupid) in my pom.xml file, but there are still some old groupids in the pom.xml files of the jars.
- sun-jaxws:jaxws-api:jar:2.1.1 in org.jboss.ejb3:jboss-ejb3-core:jar:client:1.1.5
- sun-jaxws:jsr181-api:jar:2.1.1 in org.jboss.ejb3:jboss-ejb3-core:jar:client:1.1.5
- wscommons-policy:policy:jar:1.0 in org.jboss.ws.native:jbossws-native-core:jar:3.1.2.GA
Is it possible to get these jar with the new groupids in the contained pom.xml files???
Thanks!
Now I removed the profile for the deprecated repository and downloaded the missing jars from the deprecated repository and installed them manually.
The error message remained the same:
[java] Found Banned Dependency: javax.xml.bind:jaxb-api:jar:2.1
[java] Found Banned Dependency: com.sun.xml.bind:jaxb-impl:jar:2.1.6
[java] Found Banned Dependency: javax.xml.stream:stax-api:jar:1.0
What should I do now?
-
3. Re: build JBoss 5.1.0 GA from sources failed
pgier Jun 27, 2011 5:55 PM (in response to veit_ullmann)You have to remove those dependencies from the build. You can track them down by generating the dependency tree in the thirdparty directory.
cd thirdparty
mvn dependency:tree
When you figure out where the dependencies are being added to the build, then you have to add exclusions to the component-matrix pom so that Maven doesn't try to pull in the bad dependencies.
<exclusions>
<exclusion>
<groupId>javax.xml.bind</groupId>
<artifactId>jaxb-api</artifactId>
</exclusion>
</exclusions>
Another option is to just turn off the enforcer plugin. So something like this might work
./build.sh clean main -Dmaven.opts="-P-enforce"
-
4. Re: build JBoss 5.1.0 GA from sources failed
veit_ullmann Jun 28, 2011 2:30 AM (in response to pgier)I tried it, but....:
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Invalid task 'dependency.tree': you must specify a valid lifecycle phase, or a goal in the format plugin:goal or pluginGroupId:pluginArtifactId:pluginVersion:goal
How does the correct command has to look like?
Thanks, Paul
-
5. Re: build JBoss 5.1.0 GA from sources failed
pgier Jun 28, 2011 10:29 AM (in response to veit_ullmann)It looks like you used a dot instead of a colon. So should be "mvn dependency:tree" instead of "mvn dependency.tree".
-
6. Re: build JBoss 5.1.0 GA from sources failed
veit_ullmann Jun 28, 2011 1:35 PM (in response to pgier)Still without success:
mvn dependency.tree failed: 3 artifacts were missing, I added them manually.
the started mvn dependency.tree -> succeeded
started build in build dir: still tries to download the jars found in the pom.xml files with deprecated groupids:
[java] Downloading: http://repository.jboss.org/maven2-brew//sun-jaxws/jaxws-api/2.1.1/jaxws-api-2.1.1.pom
[java] Downloading: https://repository.jboss.org/nexus/content/groups/developer//sun-jaxws/jaxws-api/2.1.1/jaxws-api-2.1.1.pom
[java] Downloading: https://repository.jboss.org/nexus/content/groups/public-jboss//sun-jaxws/jaxws-api/2.1.1/jaxws-api-2.1.1.pom
[java] Downloading: http://repository.jboss.org/maven2/sun-jaxws/jaxws-api/2.1.1/jaxws-api-2.1.1.pom
[java] Downloading: http://repo1.maven.org/maven2/sun-jaxws/jaxws-api/2.1.1/jaxws-api-2.1.1.pom
[java] Downloading: http://repository.jboss.org/maven2-brew//sun-jaxws/jsr181-api/2.1.1/jsr181-api-2.1.1.pom
[java] Downloading: https://repository.jboss.org/nexus/content/groups/developer//sun-jaxws/jsr181-api/2.1.1/jsr181-api-2.1.1.pom
[java] Downloading: https://repository.jboss.org/nexus/content/groups/public-jboss//sun-jaxws/jsr181-api/2.1.1/jsr181-api-2.1.1.pom
[java] Downloading: http://repository.jboss.org/maven2/sun-jaxws/jsr181-api/2.1.1/jsr181-api-2.1.1.pom
[java] Downloading: http://repo1.maven.org/maven2/sun-jaxws/jsr181-api/2.1.1/jsr181-api-2.1.1.pom
[java] Downloading: http://repository.jboss.org/maven2-brew//wscommons-policy/policy/1.0/policy-1.0.pom
[java] Downloading: https://repository.jboss.org/nexus/content/groups/developer//wscommons-policy/policy/1.0/policy-1.0.pom
[java] Downloading: https://repository.jboss.org/nexus/content/groups/public-jboss//wscommons-policy/policy/1.0/policy-1.0.pom
[java] Downloading: http://repository.jboss.org/maven2/wscommons-policy/policy/1.0/policy-1.0.pom
[java] Downloading: http://repo1.maven.org/maven2/wscommons-policy/policy/1.0/policy-1.0.pom
[java] Downloading: http://repository.jboss.org/maven2-brew//ws-commons/policy/1.0/policy-1.0.pom
[java] Downloading: https://repository.jboss.org/nexus/content/groups/developer//ws-commons/policy/1.0/policy-1.0.pom
[java] Downloading: https://repository.jboss.org/nexus/content/groups/public-jboss//ws-commons/policy/1.0/policy-1.0.pom
[java] Downloading: http://repository.jboss.org/maven2/ws-commons/policy/1.0/policy-1.0.pom
[java] Downloading: http://repo1.maven.org/maven2/ws-commons/policy/1.0/policy-1.0.pom
but I added them before manually ????? don't know why the build always want to download them....
then started build in dir build:
[java] [INFO] [enforcer:enforce {execution: ban-bad-dependencies}]
[java] [WARNING] Rule 0: org.apache.maven.plugins.enforcer.BannedDependencies failed with message:
[java] Found Banned Dependency: javax.xml.bind:jaxb-api:jar:2.1
[java] Found Banned Dependency: com.sun.xml.bind:jaxb-impl:jar:2.1.6
[java] Found Banned Dependency: javax.xml.stream:stax-api:jar:1.0
And when running thirdparty>mvn dependency:tree I got the warning:
[INFO] Searching repository for plugin with prefix: 'dependency'.
[INFO] org.jboss.maven.plugins: checking for updates from repository.jboss.org
[WARNING] repository metadata for: 'org.jboss.maven.plugins' could not be retrieved from repository: repository.jboss.org due to an error: Error transferring file
[INFO] Repository 'repository.jboss.org' will be blacklisted
WAGON_VERSION: 1.0-beta-2
[INFO] ------------------------------------------------------------------------
[INFO] Building JBoss Application Server Thirdparty Build
[INFO] task-segment: [dependency:tree]
[INFO] ------------------------------------------------------------------------
Downloading: http://repository.jboss.org/maven2-brew//sun-jaxws/jaxws-api/2.1.1/jaxws-api-2.1.1.pom
Downloading: https://repository.jboss.org/nexus/content/groups/developer//sun-jaxws/jaxws-api/2.1.1/jaxws-api-2.1.1.pom
Downloading: https://repository.jboss.org/nexus/content/groups/public-jboss//sun-jaxws/jaxws-api/2.1.1/jaxws-api-2.1.1.pom
Downloading: http://repository.jboss.org/maven2/sun-jaxws/jaxws-api/2.1.1/jaxws-api-2.1.1.pom
I wonder if anyone could build the sources for JBoss AS 5.1.0 GA?
Why doesn't it work? Am I the only person that tries it?
Thank you Paul for your help!