[ 
https://jira.codehaus.org/browse/MDEP-451?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=350791#comment-350791
 ] 

Lenny Primak edited comment on MDEP-451 at 7/31/14 3:55 PM:
------------------------------------------------------------

deptest is the main module
module1 is the submodule:

dependency:copy runs on deptest (good)
dependency:copy does NOT run on module1 (bad)
-------------
blackbird:deptest lprimak$ pwd
/Users/lprimak/Documents/devel/mvn_test/deptest
blackbird:deptest lprimak$ mvn dependency:copy surefire:test
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO] 
[INFO] deptest
[INFO] module1
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building deptest 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-dependency-plugin:2.8:copy (default-cli) @ deptest ---
[INFO] Configured Artifact: junit:junit:3.8.1:jar
[INFO] Copying junit-3.8.1.jar to 
/Volumes/Home/Users/lprimak/Documents/devel/mvn_test/deptest/target/dependency/junit-3.8.1.jar
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building deptest 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-surefire-plugin:2.17:test (default-cli) @ deptest ---
[INFO] No tests to run.
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building module1 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-surefire-plugin:2.7.2:test (default-cli) @ module1 ---
[INFO] No tests to run.
[INFO] Surefire report directory: 
/Volumes/Home/Users/lprimak/Documents/devel/mvn_test/deptest/module1/target/surefire-reports

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
There are no tests to run.

Results :

Tests run: 0, Failures: 0, Errors: 0, Skipped: 0

[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] deptest ........................................... SUCCESS [0.189s]
[INFO] module1 ........................................... SUCCESS [0.639s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.455s
[INFO] Finished at: Thu Jul 31 16:54:12 EDT 2014
[INFO] Final Memory: 12M/191M
[INFO] ------------------------------------------------------------------------
-------------


was (Author: lprimak):
deptest is the main module
module1 is the submodule:

dep:copy runs on deptest (good)
sep:copy does NOT run on module1 (bad)
-------------
blackbird:deptest lprimak$ pwd
/Users/lprimak/Documents/devel/mvn_test/deptest
blackbird:deptest lprimak$ mvn dependency:copy surefire:test
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO] 
[INFO] deptest
[INFO] module1
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building deptest 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-dependency-plugin:2.8:copy (default-cli) @ deptest ---
[INFO] Configured Artifact: junit:junit:3.8.1:jar
[INFO] Copying junit-3.8.1.jar to 
/Volumes/Home/Users/lprimak/Documents/devel/mvn_test/deptest/target/dependency/junit-3.8.1.jar
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building deptest 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-surefire-plugin:2.17:test (default-cli) @ deptest ---
[INFO] No tests to run.
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building module1 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-surefire-plugin:2.7.2:test (default-cli) @ module1 ---
[INFO] No tests to run.
[INFO] Surefire report directory: 
/Volumes/Home/Users/lprimak/Documents/devel/mvn_test/deptest/module1/target/surefire-reports

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
There are no tests to run.

Results :

Tests run: 0, Failures: 0, Errors: 0, Skipped: 0

[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] deptest ........................................... SUCCESS [0.189s]
[INFO] module1 ........................................... SUCCESS [0.639s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.455s
[INFO] Finished at: Thu Jul 31 16:54:12 EDT 2014
[INFO] Final Memory: 12M/191M
[INFO] ------------------------------------------------------------------------
-------------

> Regression: dependency:copy doesn't run under maven 3.2.2 multi-module project
> ------------------------------------------------------------------------------
>
>                 Key: MDEP-451
>                 URL: https://jira.codehaus.org/browse/MDEP-451
>             Project: Maven Dependency Plugin
>          Issue Type: Bug
>          Components: copy
>    Affects Versions: 2.8
>         Environment: All
>            Reporter: Lenny Primak
>            Priority: Critical
>         Attachments: deptest.tar
>
>
> I have a muldi-module project,
> running mvn dependency:copy on root project just runs
> on root project without recursing into the modules.
> This works under maven 3.0.3 but doesn't run at all in the
> current 3.2.2 version of maven



--
This message was sent by Atlassian JIRA
(v6.1.6#6162)

Reply via email to