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

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

```
$ ./mvnw dependency:analyze-exclusions
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO] 
[INFO] Minimal Parent                                                     [pom]
[INFO] Kotlin Parent                                                      [pom]
[INFO] API                                                                [jar]
[INFO] BOM                                                                [pom]
[INFO] service                                                            [pom]
[INFO] 
[INFO] ---------------------< com.example:minimal-parent >---------------------
[INFO] Building Minimal Parent 1-SNAPSHOT                                 [1/5]
[INFO] --------------------------------[ pom ]---------------------------------
[INFO] 
[INFO] --- maven-dependency-plugin:3.8.1:analyze-exclusions (default-cli) @ 
minimal-parent ---
[INFO] 
[INFO] ---------------------< com.example:kotlin-parent >----------------------
[INFO] Building Kotlin Parent 1-SNAPSHOT                                  [2/5]
[INFO] --------------------------------[ pom ]---------------------------------
[INFO] 
[INFO] --- maven-dependency-plugin:3.8.1:analyze-exclusions (default-cli) @ 
kotlin-parent ---
[INFO] 
[INFO] --------------------------< com.example:api >---------------------------
[INFO] Building API 1-SNAPSHOT                                            [3/5]
[INFO] --------------------------------[ jar ]---------------------------------
[INFO] 
[INFO] --- maven-dependency-plugin:3.8.1:analyze-exclusions (default-cli) @ api 
---
[INFO] 
[INFO] --------------------------< com.example:bom >---------------------------
[INFO] Building BOM 1-SNAPSHOT                                            [4/5]
[INFO] --------------------------------[ pom ]---------------------------------
[INFO] 
[INFO] --- maven-dependency-plugin:3.8.1:analyze-exclusions (default-cli) @ bom 
---
[INFO] 
[INFO] ------------------------< com.example:service >-------------------------
[INFO] Building service 1-SNAPSHOT                                        [5/5]
[INFO] --------------------------------[ pom ]---------------------------------
[INFO] 
[INFO] --- maven-dependency-plugin:3.8.1:analyze-exclusions (default-cli) @ 
service ---
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for service 1-SNAPSHOT:
[INFO] 
[INFO] Minimal Parent ..................................... SUCCESS [  0.405 s]
[INFO] Kotlin Parent ...................................... SUCCESS [  0.008 s]
[INFO] API ................................................ SUCCESS [  0.003 s]
[INFO] BOM ................................................ SUCCESS [  0.004 s]
[INFO] service ............................................ SUCCESS [  0.003 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  0.627 s
[INFO] Finished at: 2024-12-18T13:36:54+01:00
[INFO] ------------------------------------------------------------------------
```
 [^mrp.tar.gz] 

> 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