You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Arnaud Heritier (JIRA)" <ji...@codehaus.org> on 2008/07/16 16:45:26 UTC

[jira] Created: (MNG-3667) Dependencies resolution is wrong in some cases (xfire-core:1.2.6 for example)

Dependencies resolution is wrong in some cases (xfire-core:1.2.6 for example)
-----------------------------------------------------------------------------

                 Key: MNG-3667
                 URL: http://jira.codehaus.org/browse/MNG-3667
             Project: Maven 2
          Issue Type: Bug
          Components: Dependencies
    Affects Versions: 2.0.10
         Environment: 2.0.10-RC1
            Reporter: Arnaud Heritier
            Priority: Blocker
             Fix For: 2.0.10
         Attachments: xfire-maven-2.0.10.zip

With RC1, maven tries to download this dependency org/apache/ws/commons/XmlSchema/SNAPSHOT/XmlSchema-SNAPSHOT.jar whereas with 2.0.9 it retreives the version 1.1.
What I have is a project with a dependency to org.codehaus.xfire:xfire-core:1.2.6
In the xfire-core pom we have a dependency to org.apache.ws.commons:XmlSchema
The version 1.1 is set in the dependencyManagement of the parent.

A testcase is attached

-- 
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-3667) Dependencies resolution is wrong in some cases (xfire-core:1.2.6 for example)

Posted by "John Casey (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-3667?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=142027#action_142027 ] 

John Casey commented on MNG-3667:
---------------------------------

This is a quirk of a bad POM:

http://repo1.maven.org/maven2/org/apache/ws/commons/XmlSchema/1.1/XmlSchema-1.1.pom

Take a look at the version string inside that POM.

I'm adjusting the MavenMetadataSource to take groupId/artifactId/version from the (potentially relocated) artifact instead of the (potentially relocated) project instance, which should clear this up for consumers of this bad metadata.

> Dependencies resolution is wrong in some cases (xfire-core:1.2.6 for example)
> -----------------------------------------------------------------------------
>
>                 Key: MNG-3667
>                 URL: http://jira.codehaus.org/browse/MNG-3667
>             Project: Maven 2
>          Issue Type: Bug
>          Components: Dependencies
>    Affects Versions: 2.0.10
>         Environment: 2.0.10-RC1
>            Reporter: Arnaud Heritier
>            Priority: Blocker
>             Fix For: 2.0.10
>
>         Attachments: xfire-maven-2.0.10.zip
>
>
> With RC1, maven tries to download this dependency org/apache/ws/commons/XmlSchema/SNAPSHOT/XmlSchema-SNAPSHOT.jar whereas with 2.0.9 it retreives the version 1.1.
> What I have is a project with a dependency to org.codehaus.xfire:xfire-core:1.2.6
> In the xfire-core pom we have a dependency to org.apache.ws.commons:XmlSchema
> The version 1.1 is set in the dependencyManagement of the parent.
> A testcase is attached

-- 
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-3667) Dependencies resolution is wrong in some cases (xfire-core:1.2.6 for example)

Posted by "John Casey (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-3667?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=142030#action_142030 ] 

John Casey commented on MNG-3667:
---------------------------------

got it fixed, working on coding an integration test based on this test project (making it self-contained, of course).

> Dependencies resolution is wrong in some cases (xfire-core:1.2.6 for example)
> -----------------------------------------------------------------------------
>
>                 Key: MNG-3667
>                 URL: http://jira.codehaus.org/browse/MNG-3667
>             Project: Maven 2
>          Issue Type: Bug
>          Components: Dependencies
>    Affects Versions: 2.0.10
>         Environment: 2.0.10-RC1
>            Reporter: Arnaud Heritier
>            Priority: Blocker
>             Fix For: 2.0.10
>
>         Attachments: xfire-maven-2.0.10.zip
>
>
> With RC1, maven tries to download this dependency org/apache/ws/commons/XmlSchema/SNAPSHOT/XmlSchema-SNAPSHOT.jar whereas with 2.0.9 it retreives the version 1.1.
> What I have is a project with a dependency to org.codehaus.xfire:xfire-core:1.2.6
> In the xfire-core pom we have a dependency to org.apache.ws.commons:XmlSchema
> The version 1.1 is set in the dependencyManagement of the parent.
> A testcase is attached

-- 
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-3667) Dependencies resolution is wrong in some cases (xfire-core:1.2.6 for example)

Posted by "Arnaud Heritier (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-3667?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Arnaud Heritier updated MNG-3667:
---------------------------------

    Fix Version/s: 2.0.10

> Dependencies resolution is wrong in some cases (xfire-core:1.2.6 for example)
> -----------------------------------------------------------------------------
>
>                 Key: MNG-3667
>                 URL: http://jira.codehaus.org/browse/MNG-3667
>             Project: Maven 2
>          Issue Type: Bug
>          Components: Dependencies
>    Affects Versions: 2.0.10
>         Environment: 2.0.10-RC1
>            Reporter: Arnaud Heritier
>            Priority: Blocker
>             Fix For: 2.0.10
>
>         Attachments: xfire-maven-2.0.10.zip
>
>
> With RC1, maven tries to download this dependency org/apache/ws/commons/XmlSchema/SNAPSHOT/XmlSchema-SNAPSHOT.jar whereas with 2.0.9 it retreives the version 1.1.
> What I have is a project with a dependency to org.codehaus.xfire:xfire-core:1.2.6
> In the xfire-core pom we have a dependency to org.apache.ws.commons:XmlSchema
> The version 1.1 is set in the dependencyManagement of the parent.
> A testcase is attached

-- 
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-3667) Dependencies resolution is wrong in some cases (xfire-core:1.2.6 for example)

Posted by "John Casey (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-3667?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

John Casey closed MNG-3667.
---------------------------

      Assignee: John Casey
    Resolution: Fixed

use groupId/artifactId/version from resolved/relocated POM artifact rather than POM content itself, which may be wrong (if the POM landed in the repository as a result of a non-Maven release process)

> Dependencies resolution is wrong in some cases (xfire-core:1.2.6 for example)
> -----------------------------------------------------------------------------
>
>                 Key: MNG-3667
>                 URL: http://jira.codehaus.org/browse/MNG-3667
>             Project: Maven 2
>          Issue Type: Bug
>          Components: Dependencies
>    Affects Versions: 2.0.10
>         Environment: 2.0.10-RC1
>            Reporter: Arnaud Heritier
>            Assignee: John Casey
>            Priority: Blocker
>             Fix For: 2.0.10
>
>         Attachments: xfire-maven-2.0.10.zip
>
>
> With RC1, maven tries to download this dependency org/apache/ws/commons/XmlSchema/SNAPSHOT/XmlSchema-SNAPSHOT.jar whereas with 2.0.9 it retreives the version 1.1.
> What I have is a project with a dependency to org.codehaus.xfire:xfire-core:1.2.6
> In the xfire-core pom we have a dependency to org.apache.ws.commons:XmlSchema
> The version 1.1 is set in the dependencyManagement of the parent.
> A testcase is attached

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