You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Brad Lee (JIRA)" <ji...@codehaus.org> on 2009/12/10 18:47:57 UTC

[jira] Issue Comment Edited: (MNG-2315) Add option to exclude all transitive dependencies for a particular one

    [ http://jira.codehaus.org/browse/MNG-2315?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=202133#action_202133 ] 

Brad Lee edited comment on MNG-2315 at 12/10/09 11:47 AM:
----------------------------------------------------------

I like this idea as well.  Useful in the assemblage cases:
http://www.sonatype.com/books/maven-book/reference/assemblies-sect-assembling-via-depend.html


      was (Author: gte250p):
    I agree.  A necessity in some cases involving Assembling optional (or sets of optional) dependencies.  See this site:
http://www.sonatype.com/books/maven-book/reference/assemblies-sect-assembling-via-depend.html

Instead of the proposed solution, another neat way to do it could be regular expression matching on the exclusion groupId and artifactId:
        <dependency>
            <groupId>${project.groupId}</groupId>
            <artifactId>${someProjectId}</artifactId>
            <version>${project.version}</version>
            <classifier>assemblage</classifier>
            <type>zip</type>
            <exclusions>
                <exclusion>
                    <groupId>commons-.*</groupId>
                    <artifactId>commons-.*</artifactId>
                </exclusion>
            </exclusions>
        </dependency>

Maybe that is just overkill.
  
> Add option to exclude all transitive dependencies for a particular one
> ----------------------------------------------------------------------
>
>                 Key: MNG-2315
>                 URL: http://jira.codehaus.org/browse/MNG-2315
>             Project: Maven 2 & 3
>          Issue Type: New Feature
>          Components: Dependencies
>    Affects Versions: 2.0.4
>            Reporter: Carlos Sanchez
>            Priority: Critical
>             Fix For: 3.x
>
>
> Something like
> <dependency>
>   ...
>   <excludeTransitive>true</excludeTransitive>
> </dependency>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira