Add ability to exclude all transitive dependencies except those specified as 
inclusions
---------------------------------------------------------------------------------------

         Key: MNG-702
         URL: http://jira.codehaus.org/browse/MNG-702
     Project: Maven 2
        Type: Improvement
    Versions: 2.0-alpha-3    
 Reporter: Ken Weiner


Currently there is an ability to specify an optional <exclusions> element as a 
child of <dependency> within a POM.   This has the effect of excluding one or 
more of a dependency's transitive dependencies.

It is often the case that a dependency itself has many dependencies needed for 
compilation, but are not necessarily needed at runtime.

This is a request to add an optional <inclusions> element as a child to 
<dependency> within a POM so that it is possible to express the instruction 
"Don't get any of the transitive dependencies except for X, Y, Z, etc."   For 
example:

<dependency>
    <groupId>springframework</groupId>
    <artifactId>spring</artifactId>
    <version>1.2.2</version>
    <scope>compile</scope>
    <inclusions>
        <inclusion>
            <groupId>hibernate</groupId>
            <artifactId>hibernate</artifactId>
        </inclusion>
    </inclusions>
</dependency>

Brett Porter pointed out on the maven users mailing list that this approach 
could have some pitfalls, but that I should still submit the issue for 
discussion.


-- 
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


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to