You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Bertrand Paquet (JIRA)" <ji...@codehaus.org> on 2008/09/30 12:28:46 UTC
[jira] Created: (MNG-3775) Problem in dependency resolution with
exclusion, pom parent
Problem in dependency resolution with exclusion, pom parent
-----------------------------------------------------------
Key: MNG-3775
URL: http://jira.codehaus.org/browse/MNG-3775
Project: Maven 2
Issue Type: Bug
Components: Dependencies
Affects Versions: 2.0.9
Reporter: Bertrand Paquet
Attachments: bug_maven.zip
See projects in attachement.
Parent projet uses SEAM pom parent, and declares jboss-seam as dependency, excluding javax.el
First project uses parent project, and declares javax.el as dependency
mvn dependency:list on first, you can see javax.el
Second project uses parent project, and declares first project as dependency. It should have javax.el on classpath (because of first project), but it doesn't.
mvn dependency:list on second, javax.el disappears !
--
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
[jira] Closed: (MNG-3775) [regression] Problem in dependency
resolution with exclusion, pom parent
Posted by "Benjamin Bentmann (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MNG-3775?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Benjamin Bentmann closed MNG-3775.
----------------------------------
Resolution: Fixed
Fix Version/s: (was: Issues to be reviewed for 3.x)
3.0
Assignee: Benjamin Bentmann
Relevant dirty tree:
{noformat}
[INFO] maven-test:second:jar:1.0-SNAPSHOT
[INFO] +- org.jboss.seam:jboss-seam-debug:jar:2.0.2.SP1:compile
[INFO] | \- (org.jboss.seam:jboss-seam:jar:2.0.2.SP1:compile - omitted for duplicate) <-------------\
[INFO] | +- javassist:javassist:jar:3.3.GA:compile |
[INFO] | +- dom4j:dom4j:jar:1.6.1-jboss:compile |
[INFO] | | \- xml-apis:xml-apis:jar:1.0.b2:compile |
[INFO] | \- org.jboss.el:jboss-el:jar:2.0.1.GA:compile | disables
[INFO] | \- javax.el:el-api:jar:1.0:compile ------------------------------------------------\ |
[INFO] +- maven-test:first:jar:1.0-SNAPSHOT:test disables | |
[INFO] | \- (javax.el:el-api:jar:1.0:compile - scope updated from test; omitted for duplicate) <--/ |
[INFO] \- org.jboss.seam:jboss-seam:jar:2.0.2.SP1:compile -------------------------------------------/
[INFO] +- javassist:javassist:jar:3.3.GA:compile
[INFO] +- dom4j:dom4j:jar:1.6.1-jboss:compile
[INFO] | \- xml-apis:xml-apis:jar:1.0.b2:compile
[INFO] \- org.jboss.el:jboss-el:jar:2.0.1.GA:compile
{noformat}
The issue depends on the dependency order which makes it erroneously appear as a regression due to MNG-1412.
> [regression] Problem in dependency resolution with exclusion, pom parent
> ------------------------------------------------------------------------
>
> Key: MNG-3775
> URL: http://jira.codehaus.org/browse/MNG-3775
> Project: Maven 2 & 3
> Issue Type: Bug
> Components: Dependencies
> Affects Versions: 2.0.9
> Reporter: Bertrand Paquet
> Assignee: Benjamin Bentmann
> Fix For: 3.0
>
> Attachments: bug_maven.zip, bug_maven_test.zip
>
>
> See projects in attachement.
> Parent projet uses SEAM pom parent, and declares jboss-seam as dependency, excluding javax.el
> First project uses parent project, and declares javax.el as dependency
> mvn dependency:list on first, you can see javax.el
> Second project uses parent project, and declares first project as dependency. It should have javax.el on classpath (because of first project), but it doesn't.
> mvn dependency:list on second, javax.el disappears !
--
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
[jira] Commented: (MNG-3775) Problem in dependency resolution with
exclusion, pom parent
Posted by "Arnaud Heritier (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MNG-3775?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=149368#action_149368 ]
Arnaud Heritier commented on MNG-3775:
--------------------------------------
To sumup the test case we have in dependencies :
A -- test --> B -- compile --> C
A -- compile --> D
In depMgt, in a parent of A & B, we have D excludes C
As a result we should have C as test dependency for A. But we don't ...
Bertrand are we agree about the testcase ?
> Problem in dependency resolution with exclusion, pom parent
> -----------------------------------------------------------
>
> Key: MNG-3775
> URL: http://jira.codehaus.org/browse/MNG-3775
> Project: Maven 2
> Issue Type: Bug
> Components: Dependencies
> Affects Versions: 2.0.9
> Reporter: Bertrand Paquet
> Attachments: bug_maven.zip, bug_maven_test.zip
>
>
> See projects in attachement.
> Parent projet uses SEAM pom parent, and declares jboss-seam as dependency, excluding javax.el
> First project uses parent project, and declares javax.el as dependency
> mvn dependency:list on first, you can see javax.el
> Second project uses parent project, and declares first project as dependency. It should have javax.el on classpath (because of first project), but it doesn't.
> mvn dependency:list on second, javax.el disappears !
--
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
[jira] Updated: (MNG-3775) [regression] Problem in dependency
resolution with exclusion, pom parent
Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MNG-3775?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Brett Porter updated MNG-3775:
------------------------------
Fix Version/s: 2.2.2
I think this was identified as a regression - will take a closer look and close if not.
> [regression] Problem in dependency resolution with exclusion, pom parent
> ------------------------------------------------------------------------
>
> Key: MNG-3775
> URL: http://jira.codehaus.org/browse/MNG-3775
> Project: Maven 2 & 3
> Issue Type: Bug
> Components: Dependencies
> Affects Versions: 2.0.9
> Reporter: Bertrand Paquet
> Fix For: 2.2.2
>
> Attachments: bug_maven.zip, bug_maven_test.zip
>
>
> See projects in attachement.
> Parent projet uses SEAM pom parent, and declares jboss-seam as dependency, excluding javax.el
> First project uses parent project, and declares javax.el as dependency
> mvn dependency:list on first, you can see javax.el
> Second project uses parent project, and declares first project as dependency. It should have javax.el on classpath (because of first project), but it doesn't.
> mvn dependency:list on second, javax.el disappears !
--
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
[jira] Updated: (MNG-3775) [regression] Problem in dependency
resolution with exclusion, pom parent
Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MNG-3775?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Brett Porter updated MNG-3775:
------------------------------
Fix Version/s: 2.0.11
Summary: [regression] Problem in dependency resolution with exclusion, pom parent (was: Problem in dependency resolution with exclusion, pom parent)
this is a regression from 2.0.8 -> 2.0.9
> [regression] Problem in dependency resolution with exclusion, pom parent
> ------------------------------------------------------------------------
>
> Key: MNG-3775
> URL: http://jira.codehaus.org/browse/MNG-3775
> Project: Maven 2
> Issue Type: Bug
> Components: Dependencies
> Affects Versions: 2.0.9
> Reporter: Bertrand Paquet
> Fix For: 2.0.11
>
> Attachments: bug_maven.zip, bug_maven_test.zip
>
>
> See projects in attachement.
> Parent projet uses SEAM pom parent, and declares jboss-seam as dependency, excluding javax.el
> First project uses parent project, and declares javax.el as dependency
> mvn dependency:list on first, you can see javax.el
> Second project uses parent project, and declares first project as dependency. It should have javax.el on classpath (because of first project), but it doesn't.
> mvn dependency:list on second, javax.el disappears !
--
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
[jira] Commented: (MNG-3775) Problem in dependency resolution with
exclusion, pom parent
Posted by "Joerg Schaible (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MNG-3775?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=149364#action_149364 ]
Joerg Schaible commented on MNG-3775:
-------------------------------------
This works as designed. The dependencyManagement section of a parent POM will always overwrite any transient dependency (version, scope and exclusions). That's what it is used for.
> Problem in dependency resolution with exclusion, pom parent
> -----------------------------------------------------------
>
> Key: MNG-3775
> URL: http://jira.codehaus.org/browse/MNG-3775
> Project: Maven 2
> Issue Type: Bug
> Components: Dependencies
> Affects Versions: 2.0.9
> Reporter: Bertrand Paquet
> Attachments: bug_maven.zip
>
>
> See projects in attachement.
> Parent projet uses SEAM pom parent, and declares jboss-seam as dependency, excluding javax.el
> First project uses parent project, and declares javax.el as dependency
> mvn dependency:list on first, you can see javax.el
> Second project uses parent project, and declares first project as dependency. It should have javax.el on classpath (because of first project), but it doesn't.
> mvn dependency:list on second, javax.el disappears !
--
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
[jira] Closed: (MNG-3775) [regression] Problem in dependency
resolution with exclusion, pom parent
Posted by "Jason van Zyl (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MNG-3775?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jason van Zyl closed MNG-3775.
------------------------------
Resolution: Not A Bug
Fix Version/s: (was: 2.2.2)
> [regression] Problem in dependency resolution with exclusion, pom parent
> ------------------------------------------------------------------------
>
> Key: MNG-3775
> URL: http://jira.codehaus.org/browse/MNG-3775
> Project: Maven 2 & 3
> Issue Type: Bug
> Components: Dependencies
> Affects Versions: 2.0.9
> Reporter: Bertrand Paquet
> Attachments: bug_maven.zip, bug_maven_test.zip
>
>
> See projects in attachement.
> Parent projet uses SEAM pom parent, and declares jboss-seam as dependency, excluding javax.el
> First project uses parent project, and declares javax.el as dependency
> mvn dependency:list on first, you can see javax.el
> Second project uses parent project, and declares first project as dependency. It should have javax.el on classpath (because of first project), but it doesn't.
> mvn dependency:list on second, javax.el disappears !
--
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
[jira] Updated: (MNG-3775) [regression] Problem in dependency
resolution with exclusion, pom parent
Posted by "John Casey (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MNG-3775?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
John Casey updated MNG-3775:
----------------------------
Fix Version/s: (was: 2.2.1)
2.2.2
moving to next release, to keep critical regressions in focus for 2.2.1
> [regression] Problem in dependency resolution with exclusion, pom parent
> ------------------------------------------------------------------------
>
> Key: MNG-3775
> URL: http://jira.codehaus.org/browse/MNG-3775
> Project: Maven 2
> Issue Type: Bug
> Components: Dependencies
> Affects Versions: 2.0.9
> Reporter: Bertrand Paquet
> Fix For: 2.2.2
>
> Attachments: bug_maven.zip, bug_maven_test.zip
>
>
> See projects in attachement.
> Parent projet uses SEAM pom parent, and declares jboss-seam as dependency, excluding javax.el
> First project uses parent project, and declares javax.el as dependency
> mvn dependency:list on first, you can see javax.el
> Second project uses parent project, and declares first project as dependency. It should have javax.el on classpath (because of first project), but it doesn't.
> mvn dependency:list on second, javax.el disappears !
--
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
[jira] Updated: (MNG-3775) Problem in dependency resolution with
exclusion, pom parent
Posted by "Bertrand Paquet (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MNG-3775?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Bertrand Paquet updated MNG-3775:
---------------------------------
Attachment: bug_maven_test.zip
I'm sorry, the previous version was working fine.
With this version, the problem appears.
I added a test scope on dependency between second and first project.
> Problem in dependency resolution with exclusion, pom parent
> -----------------------------------------------------------
>
> Key: MNG-3775
> URL: http://jira.codehaus.org/browse/MNG-3775
> Project: Maven 2
> Issue Type: Bug
> Components: Dependencies
> Affects Versions: 2.0.9
> Reporter: Bertrand Paquet
> Attachments: bug_maven.zip, bug_maven_test.zip
>
>
> See projects in attachement.
> Parent projet uses SEAM pom parent, and declares jboss-seam as dependency, excluding javax.el
> First project uses parent project, and declares javax.el as dependency
> mvn dependency:list on first, you can see javax.el
> Second project uses parent project, and declares first project as dependency. It should have javax.el on classpath (because of first project), but it doesn't.
> mvn dependency:list on second, javax.el disappears !
--
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
[jira] Reopened: (MNG-3775) [regression] Problem in dependency
resolution with exclusion, pom parent
Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MNG-3775?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Brett Porter reopened MNG-3775:
-------------------------------
> [regression] Problem in dependency resolution with exclusion, pom parent
> ------------------------------------------------------------------------
>
> Key: MNG-3775
> URL: http://jira.codehaus.org/browse/MNG-3775
> Project: Maven 2 & 3
> Issue Type: Bug
> Components: Dependencies
> Affects Versions: 2.0.9
> Reporter: Bertrand Paquet
> Fix For: 2.2.2
>
> Attachments: bug_maven.zip, bug_maven_test.zip
>
>
> See projects in attachement.
> Parent projet uses SEAM pom parent, and declares jboss-seam as dependency, excluding javax.el
> First project uses parent project, and declares javax.el as dependency
> mvn dependency:list on first, you can see javax.el
> Second project uses parent project, and declares first project as dependency. It should have javax.el on classpath (because of first project), but it doesn't.
> mvn dependency:list on second, javax.el disappears !
--
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
[jira] Commented: (MNG-3775) Problem in dependency resolution with
exclusion, pom parent
Posted by "Arnaud Heritier (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MNG-3775?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=149365#action_149365 ]
Arnaud Heritier commented on MNG-3775:
--------------------------------------
Not in this case.
In the dependencyManagement we are asking to maven to exclude from jboss seam dependency the javax.el library.
But on the other side we have anoher dependency (not jboss) which requires javax.el, thus maven have to take it
> Problem in dependency resolution with exclusion, pom parent
> -----------------------------------------------------------
>
> Key: MNG-3775
> URL: http://jira.codehaus.org/browse/MNG-3775
> Project: Maven 2
> Issue Type: Bug
> Components: Dependencies
> Affects Versions: 2.0.9
> Reporter: Bertrand Paquet
> Attachments: bug_maven.zip
>
>
> See projects in attachement.
> Parent projet uses SEAM pom parent, and declares jboss-seam as dependency, excluding javax.el
> First project uses parent project, and declares javax.el as dependency
> mvn dependency:list on first, you can see javax.el
> Second project uses parent project, and declares first project as dependency. It should have javax.el on classpath (because of first project), but it doesn't.
> mvn dependency:list on second, javax.el disappears !
--
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
[jira] Commented: (MNG-3775) [regression] Problem in dependency
resolution with exclusion, pom parent
Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MNG-3775?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=204654#action_204654 ]
Brett Porter commented on MNG-3775:
-----------------------------------
confirmed to be a regression - still exists in 2.2.1 and 3.0-alpha-5 as well
> [regression] Problem in dependency resolution with exclusion, pom parent
> ------------------------------------------------------------------------
>
> Key: MNG-3775
> URL: http://jira.codehaus.org/browse/MNG-3775
> Project: Maven 2 & 3
> Issue Type: Bug
> Components: Dependencies
> Affects Versions: 2.0.9
> Reporter: Bertrand Paquet
> Fix For: 2.2.2
>
> Attachments: bug_maven.zip, bug_maven_test.zip
>
>
> See projects in attachement.
> Parent projet uses SEAM pom parent, and declares jboss-seam as dependency, excluding javax.el
> First project uses parent project, and declares javax.el as dependency
> mvn dependency:list on first, you can see javax.el
> Second project uses parent project, and declares first project as dependency. It should have javax.el on classpath (because of first project), but it doesn't.
> mvn dependency:list on second, javax.el disappears !
--
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