You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Herve Boutemy (JIRA)" <ji...@codehaus.org> on 2014/07/21 11:41:10 UTC
[jira] (MDEP-417) Dependency incorrectly reported as "Unused
declared" when using annotations with RetentionPolicy=Runtime
[ https://jira.codehaus.org/browse/MDEP-417?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Herve Boutemy updated MDEP-417:
-------------------------------
Description:
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):
{code:xml} <dependency>
<groupId>com.ibm.ws</groupId>
<artifactId>jpa-thinclient</artifactId>
<version>7.0.0.17.OM01</version>
<scope>provided</scope>
</dependency>{code}
The dependency gets incorrectly reported as "Unused declared":
{noformat}[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{noformat}
was:
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
> 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 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):
> {code:xml} <dependency>
> <groupId>com.ibm.ws</groupId>
> <artifactId>jpa-thinclient</artifactId>
> <version>7.0.0.17.OM01</version>
> <scope>provided</scope>
> </dependency>{code}
> The dependency gets incorrectly reported as "Unused declared":
> {noformat}[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{noformat}
--
This message was sent by Atlassian JIRA
(v6.1.6#6162)