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

Jakub Bochenski commented on MDEP-970:
--------------------------------------

FWIW the eu.maveniverse.maven.plugins:toolbox:check-exclusions  detects it 
correctly:

```
[INFO] ---------------------< com.example:kotlin-parent >----------------------
[INFO] Building Kotlin Parent 1-SNAPSHOT                                  [2/5]
[INFO] --------------------------------[ pom ]---------------------------------
[INFO] 
[INFO] --- toolbox:0.6.1:check-exclusions (default-cli) @ kotlin-parent ---
[INFO] Checking dependency org.jetbrains:annotations:jar:23.1.0 (compile) 
exclusion foo:bar:*:* paths
[INFO] Is unused
[INFO] 
[INFO] 
[INFO] --------------------------< com.example:api >---------------------------
[INFO] Building API 1-SNAPSHOT                                            [3/5]
[INFO] --------------------------------[ jar ]---------------------------------
[INFO] 
[INFO] --- toolbox:0.6.1:check-exclusions (default-cli) @ api ---
[INFO] Checking dependency org.jetbrains:annotations:jar:23.1.0 (compile) 
exclusion foo:bar:*:* paths
[INFO] Is unused
[INFO] 
```

> dependency:analyze-exclusions does not report uneeded exclusions
> ----------------------------------------------------------------
>
>                 Key: MDEP-970
>                 URL: https://issues.apache.org/jira/browse/MDEP-970
>             Project: Maven Dependency Plugin
>          Issue Type: Bug
>          Components: analyze-exclusions
>            Reporter: Jakub Bochenski
>            Priority: Major
>         Attachments: mrp.tar.gz
>
>
> Apache Maven 3.9.9 
> dependency:3.8.1
> ```  
>           <dependency>
>                 <groupId>org.jetbrains</groupId>
>                 <artifactId>annotations</artifactId>
>                 <version>23.1.0</version>
>                 <exclusions>
>                     <exclusion>
>                         <groupId>foo</groupId>
>                         <artifactId>bar</artifactId>
>                     </exclusion>
>                 </exclusions>
>             </dependency>
> ```
> This is not reported - neither in  dependencies nor in dependencyManagement



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

Reply via email to