[ 
https://jira.codehaus.org/browse/MNG-3832?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=359180#comment-359180
 ] 

Robert Scholte commented on MNG-3832:
-------------------------------------

[~ciprianpascu], you're facing an issue with the {{maven-dependency-plugin}}, 
not with Maven Core. Ensure you're using the latest version:
{noformat}
mvn org.apache.maven.plugins:maven-dependency-plugin:2.9:tree -Dverbose=true
{noformat}
If that still shows the wrong tree, create an issue for the 
maven-dependency-plugin.
To ensure that excludes works, run {{mvn compile -X}}, which will show the 
actual project jars used by Maven.

> Allow wildcards in dependency exclusions
> ----------------------------------------
>
>                 Key: MNG-3832
>                 URL: https://jira.codehaus.org/browse/MNG-3832
>             Project: Maven
>          Issue Type: New Feature
>          Components: Dependencies
>            Reporter: Paul Gier
>            Assignee: Robert Scholte
>             Fix For: issues to be reviewed for 3.0.6, 3.2.1
>
>         Attachments: MNG-3832-maven-artifact.patch
>
>
> I would like to be able to exclude all transitive dependencies from a certain 
> dependencies.  This is especially useful when depending on an artifact with a 
> classifier that may not have the same dependencies as the main artifact.  
> Currently the only way to do this is by excluding each dependency 
> individually which requires significant effort and is prone to becoming out 
> of date.  The following syntax is one possibility.
> Exclude all transitive dependencies
> {code}
> <exclusion>
>   <groupId>*</groupId>
> </exclusion>
> {code}
> Exclude transitive dependencies with the groupId "org.company"
> {code}
> <exclusion>
>   <groupId>org.company</groupId>
>   <artifactId>*</artifactId>
> </exclusion>
> {code}



--
This message was sent by Atlassian JIRA
(v6.1.6#6162)

Reply via email to