[ https://issues.apache.org/jira/browse/MDEP-927?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17891347#comment-17891347 ]
Kariem Hussein commented on MDEP-927: ------------------------------------- I have a similar problem and tried to describe it in [this question on Stack Overflow|https://stackoverflow.com/questions/79104315]. Steps to reproduce # Check out [spring-ws|https://github.com/spring-projects/spring-ws], at version 4.0.11 # Change to directory {{spring-ws-core}} # Run {{tree}} goal with scope filtered to {{runtime}} {noformat} mvn dependency:tree -Dscope=runtime {noformat} # Filter the output to exclude {{org.glassfish.jaxb:jaxb-runtime:jar:4.0.5}} {noformat} mvn dependency:tree -Dscope=runtime -Dexcludes=org.glassfish.jaxb:jaxb-runtime {noformat} → The dependency is still included in the output, although it should have been filtered. Filtering on {{jakarta.mail-api}} works witout problems I have also tried this with version 3.8.0 of the plugin {noformat} mvn org.apache.maven.plugins:maven-dependency-plugin:3.8.0:tree ... {noformat} Also, I can reproduce the problem in version 2.8, which is the one implicitly used when running inside of spring-ws. > dependency:tree excludes parameter does not work > ------------------------------------------------ > > Key: MDEP-927 > URL: https://issues.apache.org/jira/browse/MDEP-927 > Project: Maven Dependency Plugin > Issue Type: Bug > Components: tree > Affects Versions: 3.6.1 > Reporter: Seva Popov > Priority: Major > > The dependency:tree excludes parameter does not work in any plugin version > available for download. > Ex.: > mvn org.apache.maven.plugins:maven-dependency-plugin:3.6.1:tree -s > ~/.m2/settings.xml -Dexcludes=javax:javaee-api:jar:8.0.1 | grep javax.javaee > [INFO] +- javax:javaee-api:jar:8.0.1:provided > According to the documentation the dependency should have been excluded - > https://maven.apache.org/plugins/maven-dependency-plugin/tree-mojo.html#excludes -- This message was sent by Atlassian Jira (v8.20.10#820010)