[jboss-jira] [JBoss JIRA] (WFLY-6352) Build Fails with maven 3.3.9 Oracle JDK 8
Paul Gier (JIRA)
issues at jboss.org
Tue Jun 7 10:23:00 EDT 2016
[ https://issues.jboss.org/browse/WFLY-6352?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13249006#comment-13249006 ]
Paul Gier commented on WFLY-6352:
---------------------------------
If you look at the dom4j 1.6.1 POM in Maven central [1], the transitive dependencies listed in the error message are optional, so they shouldn't be included transitively [2]. I'm not sure why these dependencies are showing up in your build, maybe you had a bad dom4j pom in your local repo?
Also in your example, you are using the wrong profile name "Release" instead of "release". This will give a warning, but shouldn't have any effect on the transitive dependency issue.
I wasn't able to reproduce this using Maven 3.3.9 and JDK 8 on the 10.0.0.Final tag or on master, so I will close this issue.
[1]http://central.maven.org/maven2/dom4j/dom4j/1.6.1/dom4j-1.6.1.pom
[2]https://maven.apache.org/guides/introduction/introduction-to-optional-and-excludes-dependencies.html
> Build Fails with maven 3.3.9 Oracle JDK 8
> ------------------------------------------
>
> Key: WFLY-6352
> URL: https://issues.jboss.org/browse/WFLY-6352
> Project: WildFly
> Issue Type: Bug
> Components: Build System
> Affects Versions: 10.0.0.Final
> Environment:
> Reporter: Eric Lemesre
> Assignee: Paul Gier
>
> When trying to build 10.0.0.Final with Maven 3.3.9 I get the following error from maven-enforcer plugin (at wildfly-feature-pack module).
> {code}
> $ mvn --version
> Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=512m; support was removed in 8.0
> Apache Maven 3.3.9
> Maven home: /usr/share/maven
> Java version: 1.8.0_72, vendor: Oracle Corporation
> Java home: /usr/lib/jvm/jdk-8-oracle-x64/jre
> Default locale: fr_FR, platform encoding: UTF-8
> OS name: "linux", version: "4.2.0-1-amd64", arch: "amd64", family: "unix"
> {code}
> {code}
> $ mvn clean install -PRelease
> ....
> [INFO] ------------------------------------------------------------------------
> [INFO] Building WildFly: Full Feature Pack 10.0.0.Final
> [INFO] ------------------------------------------------------------------------
> [INFO]
> [INFO] --- maven-clean-plugin:2.6.1:clean (default-clean) @ wildfly-feature-pack ---
> [INFO]
> [INFO] --- maven-enforcer-plugin:1.4:enforce (ban-bad-dependencies) @ wildfly-feature-pack ---
> [INFO]
> [INFO] --- maven-enforcer-plugin:1.4:enforce (enforce-java-version) @ wildfly-feature-pack ---
> [INFO]
> [INFO] --- maven-enforcer-plugin:1.4:enforce (enforce-maven-version) @ wildfly-feature-pack ---
> [INFO]
> [INFO] --- maven-enforcer-plugin:1.4:enforce (ban-transitive-deps) @ wildfly-feature-pack ---
> [WARNING] Rule 0: org.apache.maven.plugins.enforcer.BanTransitiveDependencies failed with message:
> org.wildfly:wildfly-feature-pack:pom:10.0.0.Final
> dom4j:dom4j:jar:1.6.1:compile has transitive dependencies:
> jaxme:jaxme-api:jar:0.3:compile
> msv:xsdlib:jar:20030807:compile
> msv:relaxngDatatype:jar:20030807:compile
> pull-parser:pull-parser:jar:2:compile
> xpp3:xpp3:jar:1.1.3.3:compile
> {code}
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
More information about the jboss-jira
mailing list