You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Christian Schulte (JIRA)" <ji...@codehaus.org> on 2012/08/20 11:04:21 UTC

[jira] (MDEP-367) 'Unused declared dependencies found' incorrect with Maven 3.

Christian Schulte created MDEP-367:
--------------------------------------

             Summary: '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.5, 2.4, 2.3, 2.2, 2.1, 2.0
         Environment: Apache Maven 3.0.4 (r1232337; 2012-01-17 09:44:56+0100)
            Reporter: Christian Schulte


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

        

[jira] (MDEP-367) 'Unused declared dependencies found' incorrect with Maven 3.

Posted by "Christian Schulte (JIRA)" <ji...@codehaus.org>.
    [ 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

        

[jira] (MDEP-367) 'Unused declared dependencies found' incorrect with Maven 3.

Posted by "Christian Schulte (JIRA)" <ji...@codehaus.org>.
     [ https://jira.codehaus.org/browse/MDEP-367?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Christian Schulte updated MDEP-367:
-----------------------------------

    Attachment: MDEP-367.zip

Example project.
                
> '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

        

[jira] (MDEP-367) 'Unused declared dependencies found' incorrect with Maven 3.

Posted by "Christian Schulte (JIRA)" <ji...@codehaus.org>.
    [ 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

        

[jira] (MDEP-367) 'Unused declared dependencies found' incorrect with Maven 3.

Posted by "Herve Boutemy (JIRA)" <ji...@codehaus.org>.
     [ https://jira.codehaus.org/browse/MDEP-367?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Herve Boutemy closed MDEP-367.
------------------------------

    Resolution: Duplicate

duplicate of MDEP-282
                
> '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