You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Elliotte Rusty Harold (Jira)" <ji...@apache.org> on 2019/12/23 01:39:00 UTC
[jira] [Updated] (MASSEMBLY-782) DependencySets fails to bring a
transitive dependency declared in another circular dependency
[ https://issues.apache.org/jira/browse/MASSEMBLY-782?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Elliotte Rusty Harold updated MASSEMBLY-782:
--------------------------------------------
Priority: Major (was: Critical)
> 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.1, 2.2, 2.3, 2.4, 2.4.1, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.5.5
> Environment: Maven 3.2.5
> Reporter: Laurent TOURREAU
> Priority: Major
> Attachments: assembly.xml, pom.xml
>
>
> 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 resolve and retrieve batik-js dependency.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)