[
https://jira.codehaus.org/browse/MDEP-367?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=306552#comment-306552
]
Christian Schulte commented on MDEP-367:
----------------------------------------
Output running 'analyze' using Maven 2.2.1.
{code}
Script started on Mon Aug 20 11:21:08 2012
$ mvn org.apache.maven.plugins:maven-dependency-plugin:2.5:analyze
[INFO] Scanning for projects...
[INFO] Reactor build order:
[INFO] parent
[INFO] module1
[INFO] module2
[INFO] ------------------------------------------------------------------------
[INFO] Building parent
[INFO] task-segment:
[org.apache.maven.plugins:maven-dependency-plugin:2.5:analyze]
[INFO] ------------------------------------------------------------------------
[INFO] Preparing dependency:analyze
[INFO] No goals needed for project - skipping
[INFO] [dependency:analyze {execution: default-cli}]
[INFO] Skipping pom project
[INFO] ------------------------------------------------------------------------
[INFO] Building module1
[INFO] task-segment:
[org.apache.maven.plugins:maven-dependency-plugin:2.5:analyze]
[INFO] ------------------------------------------------------------------------
[INFO] Preparing dependency:analyze
[INFO] [resources:resources {execution: default-resources}]
[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] [compiler:compile {execution: default-compile}]
[INFO] Nothing to compile - all classes are up to date
[INFO] [resources:testResources {execution: default-testResources}]
[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] [compiler:testCompile {execution: default-testCompile}]
[INFO] No sources to compile
[INFO] [dependency:analyze {execution: default-cli}]
[INFO] No dependency problems found
[INFO] ------------------------------------------------------------------------
[INFO] Building module2
[INFO] task-segment:
[org.apache.maven.plugins:maven-dependency-plugin:2.5:analyze]
[INFO] ------------------------------------------------------------------------
[INFO] Preparing dependency:analyze
[INFO] [resources:resources {execution: default-resources}]
[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] [compiler:compile {execution: default-compile}]
[INFO] Nothing to compile - all classes are up to date
[INFO] [resources:testResources {execution: default-testResources}]
[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] [compiler:testCompile {execution: default-testCompile}]
[INFO] No sources to compile
[INFO] [dependency:analyze {execution: default-cli}]
[INFO] No dependency problems found
[INFO]
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] ------------------------------------------------------------------------
[INFO] parent ................................................ SUCCESS [3.543s]
[INFO] module1 ............................................... SUCCESS [0.480s]
[INFO] module2 ............................................... SUCCESS [0.029s]
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4 seconds
[INFO] Finished at: Mon Aug 20 11:21:24 CEST 2012
[INFO] Final Memory: 20M/49M
[INFO] ------------------------------------------------------------------------
$ ^D
Script done on Mon Aug 20 11:21:31 2012
{code}
[INFO] No dependency problems found
> '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