Laurent TOURREAU created MASSEMBLY-782: ------------------------------------------
Summary: DependencySets fails to bring a transitive dependency declared in another circular dependency Key: MASSEMBLY-782 URL: https://issues.apache.org/jira/browse/MASSEMBLY-782 Project: Maven Assembly Plugin Issue Type: Bug Components: dependencySet Affects Versions: 2.5.5, 2.5.4, 2.5.3, 2.5.2, 2.5.1, 2.4.1, 2.4, 2.3, 2.2, 2.1 Environment: Maven 3.2.5 Reporter: Laurent TOURREAU Priority: Critical See as attachment the pom.xml and assembly.xml I have declared a dependency to Apache FOP: {code} <dependencies> <dependency> <groupId>org.apache.xmlgraphics</groupId> <artifactId>fop</artifactId> <version>0.95</version> </dependency> </dependencies> {code} A dependency:tree give us: {code} [INFO] --- maven-dependency-plugin:2.8:tree (default-cli) @ my-app --- [INFO] com.mycompany:my-app:pom:0.0.1-SNAPSHOT [INFO] \- org.apache.xmlgraphics:fop:jar:0.95:compile [INFO] +- org.apache.xmlgraphics:xmlgraphics-commons:jar:1.3.1:compile [INFO] +- org.apache.xmlgraphics:batik-svg-dom:jar:1.7:compile [INFO] | +- org.apache.xmlgraphics:batik-anim:jar:1.7:compile [INFO] | +- org.apache.xmlgraphics:batik-css:jar:1.7:compile [INFO] | +- org.apache.xmlgraphics:batik-dom:jar:1.7:compile [INFO] | +- org.apache.xmlgraphics:batik-parser:jar:1.7:compile [INFO] | +- org.apache.xmlgraphics:batik-util:jar:1.7:compile [INFO] | +- xml-apis:xml-apis:jar:1.3.04:compile [INFO] | \- xml-apis:xml-apis-ext:jar:1.3.04:compile [INFO] +- org.apache.xmlgraphics:batik-bridge:jar:1.7:compile [INFO] | +- org.apache.xmlgraphics:batik-script:jar:1.7:compile [INFO] | | \- org.apache.xmlgraphics:batik-js:jar:1.7:compile [INFO] | +- org.apache.xmlgraphics:batik-xml:jar:1.7:compile [INFO] | \- xalan:xalan:jar:2.6.0:compile [INFO] +- org.apache.xmlgraphics:batik-awt-util:jar:1.7:compile [INFO] +- org.apache.xmlgraphics:batik-gvt:jar:1.7:compile [INFO] +- org.apache.xmlgraphics:batik-transcoder:jar:1.7:compile [INFO] | \- org.apache.xmlgraphics:batik-svggen:jar:1.7:compile [INFO] +- org.apache.xmlgraphics:batik-extension:jar:1.7:compile [INFO] +- org.apache.xmlgraphics:batik-ext:jar:1.7:compile [INFO] +- commons-logging:commons-logging:jar:1.0.4:compile [INFO] +- commons-io:commons-io:jar:1.3.1:compile [INFO] \- org.apache.avalon.framework:avalon-framework-api:jar:4.3.1:compile {code} In the assembly.xml i only declare this clause: {code} <dependencySets> <dependencySet> </dependencySet> </dependencySets> {code} In the zip the library batik-js-1.7.jar is missing. According to me the root cause is on batik-script and batik-script pom.xml dependencies declaration. batik-bridge pom.xml: {code} ... <dependency> <groupId>org.apache.xmlgraphics</groupId> <artifactId>batik-script</artifactId> <version>1.7</version> </dependency> ... {code} batik-script pom.xml: {code} ... <dependency> <groupId>org.apache.xmlgraphics</groupId> <artifactId>batik-bridge</artifactId> <version>1.7</version> </dependency> ... <dependency> <groupId>org.apache.xmlgraphics</groupId> <artifactId>batik-js</artifactId> <version>1.7</version> </dependency> ... {code} batik-script references batik-bridge which references batik-script. DependencySet is unable to resole and retrieve batik-js dependency. -- This message was sent by Atlassian JIRA (v6.3.4#6332)