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

Christian Schulte commented on MDEP-367:
----------------------------------------

Output running 'analyze' using Maven 3.0.4.

{code}
Script started on Mon Aug 20 11:18:55 2012
$ mvn org.apache.maven.plugins:maven-dependency-plugin:2.5:analyze 

[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO] 
[INFO] parent
[INFO] module1
[INFO] module2
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building parent 1.0
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] >>> maven-dependency-plugin:2.5:analyze (default-cli) @ parent >>>
[INFO] 
[INFO] <<< maven-dependency-plugin:2.5:analyze (default-cli) @ parent <<<
[INFO] 
[INFO] --- maven-dependency-plugin:2.5:analyze (default-cli) @ parent ---
[INFO] Skipping pom project
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building module1 1.0
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] >>> maven-dependency-plugin:2.5:analyze (default-cli) @ module1 >>>
[INFO] 
[INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ module1 
---
[debug] execute contextualize
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, 
i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory 
/tmp/MDEP-367/module1/src/main/resources
[INFO] 
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ module1 ---
[WARNING] File encoding has not been set, using platform encoding UTF-8, i.e. 
build is platform dependent!
[INFO] Compiling 1 source file to /tmp/MDEP-367/module1/target/classes
[INFO] 
[INFO] --- maven-resources-plugin:2.5:testResources (default-testResources) @ 
module1 ---
[debug] execute contextualize
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, 
i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory 
/tmp/MDEP-367/module1/src/test/resources
[INFO] 
[INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) @ 
module1 ---
[INFO] No sources to compile
[INFO] 
[INFO] <<< maven-dependency-plugin:2.5:analyze (default-cli) @ module1 <<<
[INFO] 
[INFO] --- maven-dependency-plugin:2.5:analyze (default-cli) @ module1 ---
[INFO] No dependency problems found
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building module2 1.0
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] >>> maven-dependency-plugin:2.5:analyze (default-cli) @ module2 >>>
[INFO] 
[INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ module2 
---
[debug] execute contextualize
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, 
i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory 
/tmp/MDEP-367/module2/src/main/resources
[INFO] 
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ module2 ---
[WARNING] File encoding has not been set, using platform encoding UTF-8, i.e. 
build is platform dependent!
[INFO] Compiling 1 source file to /tmp/MDEP-367/module2/target/classes
[INFO] 
[INFO] --- maven-resources-plugin:2.5:testResources (default-testResources) @ 
module2 ---
[debug] execute contextualize
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, 
i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory 
/tmp/MDEP-367/module2/src/test/resources
[INFO] 
[INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) @ 
module2 ---
[INFO] No sources to compile
[INFO] 
[INFO] <<< maven-dependency-plugin:2.5:analyze (default-cli) @ module2 <<<
[INFO] 
[INFO] --- maven-dependency-plugin:2.5:analyze (default-cli) @ module2 ---
[WARNING] Unused declared dependencies found:
[WARNING]    mdep367:module1:jar:1.0:compile
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] parent ............................................ SUCCESS [1.029s]
[INFO] module1 ........................................... SUCCESS [0.855s]
[INFO] module2 ........................................... SUCCESS [0.404s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.696s
[INFO] Finished at: Mon Aug 20 11:19:01 CEST 2012
[INFO] Final Memory: 12M/30M
[INFO] ------------------------------------------------------------------------
$ ^D


Script done on Mon Aug 20 11:19:03 2012
{code}

[WARNING] Unused declared dependencies found:
[WARNING]    mdep367:module1:jar:1.0:compile

                
> 'Unused declared dependencies found' incorrect with Maven 3.
> ------------------------------------------------------------
>
>                 Key: MDEP-367
>                 URL: https://jira.codehaus.org/browse/MDEP-367
>             Project: Maven 2.x Dependency Plugin
>          Issue Type: Bug
>          Components: analyze
>    Affects Versions: 2.0, 2.1, 2.2, 2.3, 2.4, 2.5
>         Environment: Apache Maven 3.0.4 (r1232337; 2012-01-17 09:44:56+0100)
>            Reporter: Christian Schulte
>         Attachments: MDEP-367.zip
>
>
> The 'analyze' goal reports dependencies as 'unused declared' although the 
> dependency is used. Works with Maven 2.2.1.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to