[ 
https://issues.apache.org/jira/browse/MENFORCER-490?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17763373#comment-17763373
 ] 

ASF GitHub Bot commented on MENFORCER-490:
------------------------------------------

elharo commented on PR #289:
URL: https://github.com/apache/maven-enforcer/pull/289#issuecomment-1712645957

   It is certainly used. I'm not sure why the dependency analyzer reports it as 
both used and unused. Likely a bug there I need to investigate:
   
   ```
   $ grep -R "import javax.annotation" .
   
./enforcer-api/src/main/java/org/apache/maven/enforcer/rule/api/EnforcerRuleHelper.java:import
 javax.annotation.Nonnull;
   
./enforcer-api/src/main/java/org/apache/maven/enforcer/rule/api/EnforcerRule.java:import
 javax.annotation.Nonnull;
   
./enforcer-api/src/main/java/org/apache/maven/enforcer/rule/api/EnforcerRule.java:import
 javax.annotation.Nullable;
   
./maven-enforcer-plugin/src/main/java/org/apache/maven/plugins/enforcer/internal/EnforcerRuleCache.java:import
 javax.annotation.PreDestroy;
   ```




> Properly declare dependencies
> -----------------------------
>
>                 Key: MENFORCER-490
>                 URL: https://issues.apache.org/jira/browse/MENFORCER-490
>             Project: Maven Enforcer Plugin
>          Issue Type: Improvement
>            Reporter: Elliotte Rusty Harold
>            Assignee: Elliotte Rusty Harold
>            Priority: Minor
>             Fix For: 3.4.1
>
>
> mvn dependency:analyze reveals a number of undeclared dependencies in various 
> sub modules. 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to