You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by "Ken Weiner (JIRA)" <ji...@codehaus.org> on 2005/08/05 05:39:57 UTC
[jira] Created: (MNG-702) Add ability to exclude all transitive dependencies except those specified as inclusions
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: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
[jira] Updated: (MNG-702) Add ability to exclude all transitive dependencies except those specified as inclusions
Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MNG-702?page=all ]
Brett Porter updated MNG-702:
-----------------------------
Fix Version: (was: 2.0-beta-1)
2.0-beta-2
> 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
> Assignee: Brett Porter
> Priority: Critical
> Fix For: 2.0-beta-2
>
>
> 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: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
[jira] Updated: (MNG-702) Add ability to exclude all transitive dependencies except those specified as inclusions
Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MNG-702?page=all ]
Brett Porter updated MNG-702:
-----------------------------
Priority: Critical (was: Major)
> 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
> Priority: Critical
> Fix For: 2.0-beta-1
>
>
> 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: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
[jira] Updated: (MNG-702) Add ability to exclude all transitive dependencies except those specified as inclusions
Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MNG-702?page=all ]
Brett Porter updated MNG-702:
-----------------------------
Remaining Estimate: (was: 3 hours)
Original Estimate: (was: 10800)
I'm not certain about this any more, I'm inclined to WON'T FIX as its behaviour isn't consistent. Where excludes filters to any depth, that would make includes not very useful.
I think we need to focus on correcting the metadata which we are doing, and for poms where this is likely to be an ongoing problem (eg dom4j and its optional dependencies), we should create a profile within it that can be used, so the default is light on dependencies.
Still up for consideration, but cut from beta-1
> 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
> Assignee: Brett Porter
> Priority: Critical
> Fix For: 2.0-beta-1
>
>
> 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: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
[jira] Updated: (MNG-702) Add ability to exclude all transitive dependencies except those specified as inclusions
Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MNG-702?page=all ]
Brett Porter updated MNG-702:
-----------------------------
Fix Version: 2.0-beta-1
need to consider this for beta-1 - maybe WON'T FIX, not sure yet.
> 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
> Fix For: 2.0-beta-1
>
>
> 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: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
[jira] Closed: (MNG-702) Add ability to exclude all transitive dependencies except those specified as inclusions
Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MNG-702?page=all ]
Brett Porter closed MNG-702:
----------------------------
Resolution: Won't Fix
Fix Version: (was: 2.0-beta-2)
optinoal scope instead
> 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
> Assignee: Brett Porter
> Priority: Critical
>
>
> 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: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
[jira] Updated: (MNG-702) Add ability to exclude all transitive dependencies except those specified as inclusions
Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MNG-702?page=all ]
Brett Porter updated MNG-702:
-----------------------------
Complexity: Intermediate
Remaining Estimate: 3 hours
Original Estimate: 10800
includes/excludes is symmetrical everywhere else, so I think this makes sense.
Only one of inclusions/exclusions will be allowed, with an empty set representing no inclusions. (as opposed to null - no element, which results in the default of all included)
> 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
> Assignee: Brett Porter
> Priority: Critical
> Fix For: 2.0-beta-1
>
> Original Estimate: 3 hours
> Remaining: 3 hours
>
> 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: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org