[
https://jira.codehaus.org/browse/MDEP-454?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=352521#comment-352521
]
Tejas Mulay commented on MDEP-454:
----------------------------------
I guess dep plugin tries to copy the dependencies from local repo? The
transitive deps of jbpm are already downloaded on local repo and my
compilation/build is working fine.
I tried it with different artifact: gremlin-groovy of which transitive deps are
downloaded to local repo.
snip of "mvn dependency:tree" output ->
[INFO] +- com.tinkerpop.gremlin:gremlin-groovy:jar:2.4.0:compile
[INFO] | +- com.tinkerpop.gremlin:gremlin-java:jar:2.4.0:compile
[INFO] | +- org.apache.ivy:ivy:jar:2.3.0:compile
[INFO] | +- com.tinkerpop:pipes:jar:2.4.0:compile
[INFO] | +- org.codehaus.groovy:groovy:jar:1.8.9:compile
[INFO] | | +- antlr:antlr:jar:2.7.7:compile
[INFO] | | +- asm:asm:jar:3.2:compile
[INFO] | | +- asm:asm-commons:jar:3.2:compile
[INFO] | | +- asm:asm-util:jar:3.2:compile
[INFO] | | +- asm:asm-analysis:jar:3.2:compile
[INFO] | | \- asm:asm-tree:jar:3.2:compile
[INFO] | +- org.fusesource.jansi:jansi:jar:1.5:compile
[INFO] | \- jline:jline:jar:0.9.94:compile
When I run the plugin, it only copies gremlin-groovy artifact and not its deps:
[INFO]
[INFO] --- maven-dependency-plugin:2.8:copy-dependencies (Copying dependencies
into /abc/tejas/builds/buildarea/stage/jars) @ wflow ---
[INFO] Copying gremlin-groovy-2.4.0.jar to
/abc/tejas/builds/buildarea/stage/jars/gremlin-groovy-2.4.0.jar
[INFO]
[INFO] --- maven-install-plugin:2.4:install (default-install) @ workflow ---
> copy-dependencies with <includeArtifactIds> does NOT copy transitive deps
> -------------------------------------------------------------------------
>
> Key: MDEP-454
> URL: https://jira.codehaus.org/browse/MDEP-454
> Project: Maven Dependency Plugin
> Issue Type: Bug
> Components: copy-dependencies
> Affects Versions: 2.8
> Environment: 1. RHEL 6.5,
> 2. mvn -version
> Apache Maven 3.2.1 (ea8b2b07643dbb1b84b6d16e1f08391b666bc1e9;
> 2014-02-14T09:37:52-08:00)
> Maven home: /abc/apache-maven-3.2.1
> Java version: 1.7.0_55, vendor: Oracle Corporation
> Java home: /xyz/jdk/jre
> Default locale: en_US, platform encoding: UTF-8
> OS name: "linux", version: "2.6.32-358.14.1.el6.x86_64", arch: "amd64",
> family: "unix"
> Reporter: Tejas Mulay
> Assignee: Karl-Heinz Marbaise
> Priority: Blocker
>
> I would like to copy transitive deps of specific artifacts into a custom
> directory. For that I am using copy-dependencies goal of dep plugin.
> But the plugin copies only the artifacts which are mentioned in
> <includeArtifactIds> tag and not its transitive deps.
> POM section for reference->
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-dependency-plugin</artifactId>
> <version>2.8</version>
> <executions>
> <execution>
> <id>Copying dependencies into ${stage}/${pkg_name_ss}/jars</id>
> <phase>package</phase>
> <goals>
> <goal>copy-dependencies</goal>
> </goals>
> <configuration>
> <excludeTransitive>false</excludeTransitive>
>
> <includeArtifactIds>jbpm-executor,jbpm-runtime-manager</includeArtifactIds>
> <outputDirectory>${stage}/${pkg_name_ss}/jars</outputDirectory>
> <overWriteReleases>false</overWriteReleases>
> <overWriteSnapshots>false</overWriteSnapshots>
> <overWriteIfNewer>true</overWriteIfNewer>
> </configuration>
> </execution>
> </executions>
> </plugin>
> It is a blocker for me.
> -Tejas.
--
This message was sent by Atlassian JIRA
(v6.1.6#6162)