Florian Brunner created MDEP-417:
------------------------------------

             Summary: Dependency incorrectly reported as "Unused declared" when 
using annotations with RetentionPolicy=Runtime
                 Key: MDEP-417
                 URL: https://jira.codehaus.org/browse/MDEP-417
             Project: Maven 2.x Dependency Plugin
          Issue Type: Bug
          Components: analyze
    Affects Versions: 2.8
            Reporter: Florian Brunner


In one project we're using only JPA annotations (e.g. javax.persistence.Table; 
RetentionPolicy=RUNTIME) from one dependency. 

We're declaring the dependency as PROVIDED (but scope=COMPILE fails too):

       <dependency>
            <groupId>com.ibm.ws</groupId>
            <artifactId>jpa-thinclient</artifactId>
            <version>7.0.0.17.OM01</version>
            <scope>provided</scope>
        </dependency>

The dependency gets incorrectly reported as "Unused declared":

[INFO] --- maven-dependency-plugin:2.8:analyze-only (analyze) @ my-project ---
[WARNING] Unused declared dependencies found:
[WARNING]    com.ibm.ws:jpa-thinclient:jar:7.0.0.17.OM01:provided



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

Reply via email to