You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by "Rick Riemer (JIRA)" <ji...@apache.org> on 2008/04/29 11:23:57 UTC

[jira] Created: (IVY-811) Maven scope defined in POM dependencyManagement section not honoured

Maven scope defined in POM dependencyManagement section not honoured
--------------------------------------------------------------------

                 Key: IVY-811
                 URL: https://issues.apache.org/jira/browse/IVY-811
             Project: Ivy
          Issue Type: Bug
          Components: Core
    Affects Versions: 2.0.0-beta-2
         Environment:  * Windows XP SP2
 * Sun Java 6 SE 1.6.0_05
 * Apache Ant 1.7.0
            Reporter: Rick Riemer
             Fix For: 2.0


When resolving dependencies from Maven POMs, Ivy seems to ignore the dependency scopes as defined in the dependencyManagement section. For example when our project imports the org.picocontainer#picocontainer;1.2 project, Ivy considers xpp3#xpp3 and xstream#xstream as normal dependencies, while picocontainer-parent only includes them on test scope.

I will attach the picocontainer POMs and the generated Ivy file to show what happens.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (IVY-811) Maven scope defined in POM dependencyManagement section not honoured

Posted by "Maarten Coene (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/IVY-811?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12598846#action_12598846 ] 

Maarten Coene commented on IVY-811:
-----------------------------------

I've committed a fix for this problem to SVN trunk. Could you give it a try?
I'm leaving this issue open untill I have found the time to add a junit test.

> Maven scope defined in POM dependencyManagement section not honoured
> --------------------------------------------------------------------
>
>                 Key: IVY-811
>                 URL: https://issues.apache.org/jira/browse/IVY-811
>             Project: Ivy
>          Issue Type: Bug
>          Components: Maven Compatibility
>    Affects Versions: 2.0.0-beta-2
>         Environment:  * Windows XP SP2
>  * Sun Java 6 SE 1.6.0_05
>  * Apache Ant 1.7.0
>            Reporter: Rick Riemer
>            Assignee: Maarten Coene
>             Fix For: 2.0-RC1
>
>         Attachments: ivy-1.2-picocontainer.xml, ivy-1.2_picocontainer-parent.xml, picocontainer-parent.original-1.2.pom, picocontainer.original-1.2.pom
>
>
> When resolving dependencies from Maven POMs, Ivy seems to ignore the dependency scopes as defined in the dependencyManagement section. For example when our project imports the org.picocontainer#picocontainer;1.2 project, Ivy considers xpp3#xpp3 and xstream#xstream as normal dependencies, while picocontainer-parent only includes them on test scope.
> I will attach the picocontainer POMs and the generated Ivy file to show what happens.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (IVY-811) Maven scope defined in POM dependencyManagement section not honoured

Posted by "Gilles Scokart (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/IVY-811?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gilles Scokart updated IVY-811:
-------------------------------

    Component/s:     (was: Core)
                 Maven Compatibility

> Maven scope defined in POM dependencyManagement section not honoured
> --------------------------------------------------------------------
>
>                 Key: IVY-811
>                 URL: https://issues.apache.org/jira/browse/IVY-811
>             Project: Ivy
>          Issue Type: Bug
>          Components: Maven Compatibility
>    Affects Versions: 2.0.0-beta-2
>         Environment:  * Windows XP SP2
>  * Sun Java 6 SE 1.6.0_05
>  * Apache Ant 1.7.0
>            Reporter: Rick Riemer
>             Fix For: 2.0
>
>         Attachments: ivy-1.2-picocontainer.xml, ivy-1.2_picocontainer-parent.xml, picocontainer-parent.original-1.2.pom, picocontainer.original-1.2.pom
>
>
> When resolving dependencies from Maven POMs, Ivy seems to ignore the dependency scopes as defined in the dependencyManagement section. For example when our project imports the org.picocontainer#picocontainer;1.2 project, Ivy considers xpp3#xpp3 and xstream#xstream as normal dependencies, while picocontainer-parent only includes them on test scope.
> I will attach the picocontainer POMs and the generated Ivy file to show what happens.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (IVY-811) Maven scope defined in POM dependencyManagement section not honoured

Posted by "Maarten Coene (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/IVY-811?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12599125#action_12599125 ] 

Maarten Coene commented on IVY-811:
-----------------------------------

I've removed the System.out.println which I forgot to cleanup yesterday.
Thanks for your help!

> Maven scope defined in POM dependencyManagement section not honoured
> --------------------------------------------------------------------
>
>                 Key: IVY-811
>                 URL: https://issues.apache.org/jira/browse/IVY-811
>             Project: Ivy
>          Issue Type: Bug
>          Components: Maven Compatibility
>    Affects Versions: 2.0.0-beta-2
>         Environment:  * Windows XP SP2
>  * Sun Java 6 SE 1.6.0_05
>  * Apache Ant 1.7.0
>            Reporter: Rick Riemer
>            Assignee: Maarten Coene
>             Fix For: 2.0-RC1
>
>         Attachments: ivy-1.2-picocontainer.xml, ivy-1.2_picocontainer-parent.xml, picocontainer-parent.original-1.2.pom, picocontainer.original-1.2.pom
>
>
> When resolving dependencies from Maven POMs, Ivy seems to ignore the dependency scopes as defined in the dependencyManagement section. For example when our project imports the org.picocontainer#picocontainer;1.2 project, Ivy considers xpp3#xpp3 and xstream#xstream as normal dependencies, while picocontainer-parent only includes them on test scope.
> I will attach the picocontainer POMs and the generated Ivy file to show what happens.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (IVY-811) Maven scope defined in POM dependencyManagement section not honoured

Posted by "Maarten Coene (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/IVY-811?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Maarten Coene updated IVY-811:
------------------------------

    Fix Version/s:     (was: 2.0)
                   2.0-RC1

> Maven scope defined in POM dependencyManagement section not honoured
> --------------------------------------------------------------------
>
>                 Key: IVY-811
>                 URL: https://issues.apache.org/jira/browse/IVY-811
>             Project: Ivy
>          Issue Type: Bug
>          Components: Maven Compatibility
>    Affects Versions: 2.0.0-beta-2
>         Environment:  * Windows XP SP2
>  * Sun Java 6 SE 1.6.0_05
>  * Apache Ant 1.7.0
>            Reporter: Rick Riemer
>            Assignee: Maarten Coene
>             Fix For: 2.0-RC1
>
>         Attachments: ivy-1.2-picocontainer.xml, ivy-1.2_picocontainer-parent.xml, picocontainer-parent.original-1.2.pom, picocontainer.original-1.2.pom
>
>
> When resolving dependencies from Maven POMs, Ivy seems to ignore the dependency scopes as defined in the dependencyManagement section. For example when our project imports the org.picocontainer#picocontainer;1.2 project, Ivy considers xpp3#xpp3 and xstream#xstream as normal dependencies, while picocontainer-parent only includes them on test scope.
> I will attach the picocontainer POMs and the generated Ivy file to show what happens.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (IVY-811) Maven scope defined in POM dependencyManagement section not honoured

Posted by "Rick Riemer (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/IVY-811?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12598973#action_12598973 ] 

Rick Riemer commented on IVY-811:
---------------------------------

I tested with the latest SVN snapshot (r659035), which seems to work correctly.

One question: will the logging like
{{[ivy:cachepath] *** scope = provided}}
{{[ivy:resolve] *** scope = null}}
be removed from the final version? I have logging set to quiet, but I still see such messages.

For my part you can close the bug once you've added your unit test.


> Maven scope defined in POM dependencyManagement section not honoured
> --------------------------------------------------------------------
>
>                 Key: IVY-811
>                 URL: https://issues.apache.org/jira/browse/IVY-811
>             Project: Ivy
>          Issue Type: Bug
>          Components: Maven Compatibility
>    Affects Versions: 2.0.0-beta-2
>         Environment:  * Windows XP SP2
>  * Sun Java 6 SE 1.6.0_05
>  * Apache Ant 1.7.0
>            Reporter: Rick Riemer
>            Assignee: Maarten Coene
>             Fix For: 2.0-RC1
>
>         Attachments: ivy-1.2-picocontainer.xml, ivy-1.2_picocontainer-parent.xml, picocontainer-parent.original-1.2.pom, picocontainer.original-1.2.pom
>
>
> When resolving dependencies from Maven POMs, Ivy seems to ignore the dependency scopes as defined in the dependencyManagement section. For example when our project imports the org.picocontainer#picocontainer;1.2 project, Ivy considers xpp3#xpp3 and xstream#xstream as normal dependencies, while picocontainer-parent only includes them on test scope.
> I will attach the picocontainer POMs and the generated Ivy file to show what happens.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (IVY-811) Maven scope defined in POM dependencyManagement section not honoured

Posted by "Maarten Coene (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/IVY-811?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Maarten Coene reassigned IVY-811:
---------------------------------

    Assignee: Maarten Coene

> Maven scope defined in POM dependencyManagement section not honoured
> --------------------------------------------------------------------
>
>                 Key: IVY-811
>                 URL: https://issues.apache.org/jira/browse/IVY-811
>             Project: Ivy
>          Issue Type: Bug
>          Components: Maven Compatibility
>    Affects Versions: 2.0.0-beta-2
>         Environment:  * Windows XP SP2
>  * Sun Java 6 SE 1.6.0_05
>  * Apache Ant 1.7.0
>            Reporter: Rick Riemer
>            Assignee: Maarten Coene
>             Fix For: 2.0
>
>         Attachments: ivy-1.2-picocontainer.xml, ivy-1.2_picocontainer-parent.xml, picocontainer-parent.original-1.2.pom, picocontainer.original-1.2.pom
>
>
> When resolving dependencies from Maven POMs, Ivy seems to ignore the dependency scopes as defined in the dependencyManagement section. For example when our project imports the org.picocontainer#picocontainer;1.2 project, Ivy considers xpp3#xpp3 and xstream#xstream as normal dependencies, while picocontainer-parent only includes them on test scope.
> I will attach the picocontainer POMs and the generated Ivy file to show what happens.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (IVY-811) Maven scope defined in POM dependencyManagement section not honoured

Posted by "Rick Riemer (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/IVY-811?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rick Riemer updated IVY-811:
----------------------------

    Attachment: ivy-1.2_picocontainer-parent.xml

> Maven scope defined in POM dependencyManagement section not honoured
> --------------------------------------------------------------------
>
>                 Key: IVY-811
>                 URL: https://issues.apache.org/jira/browse/IVY-811
>             Project: Ivy
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 2.0.0-beta-2
>         Environment:  * Windows XP SP2
>  * Sun Java 6 SE 1.6.0_05
>  * Apache Ant 1.7.0
>            Reporter: Rick Riemer
>             Fix For: 2.0
>
>         Attachments: ivy-1.2_picocontainer-parent.xml, picocontainer-parent.original-1.2.pom, picocontainer.original-1.2.pom
>
>
> When resolving dependencies from Maven POMs, Ivy seems to ignore the dependency scopes as defined in the dependencyManagement section. For example when our project imports the org.picocontainer#picocontainer;1.2 project, Ivy considers xpp3#xpp3 and xstream#xstream as normal dependencies, while picocontainer-parent only includes them on test scope.
> I will attach the picocontainer POMs and the generated Ivy file to show what happens.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (IVY-811) Maven scope defined in POM dependencyManagement section not honoured

Posted by "Maarten Coene (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/IVY-811?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Maarten Coene resolved IVY-811.
-------------------------------

    Resolution: Fixed

Added a junit test.

> Maven scope defined in POM dependencyManagement section not honoured
> --------------------------------------------------------------------
>
>                 Key: IVY-811
>                 URL: https://issues.apache.org/jira/browse/IVY-811
>             Project: Ivy
>          Issue Type: Bug
>          Components: Maven Compatibility
>    Affects Versions: 2.0.0-beta-2
>         Environment:  * Windows XP SP2
>  * Sun Java 6 SE 1.6.0_05
>  * Apache Ant 1.7.0
>            Reporter: Rick Riemer
>            Assignee: Maarten Coene
>             Fix For: 2.0-RC1
>
>         Attachments: ivy-1.2-picocontainer.xml, ivy-1.2_picocontainer-parent.xml, picocontainer-parent.original-1.2.pom, picocontainer.original-1.2.pom
>
>
> When resolving dependencies from Maven POMs, Ivy seems to ignore the dependency scopes as defined in the dependencyManagement section. For example when our project imports the org.picocontainer#picocontainer;1.2 project, Ivy considers xpp3#xpp3 and xstream#xstream as normal dependencies, while picocontainer-parent only includes them on test scope.
> I will attach the picocontainer POMs and the generated Ivy file to show what happens.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (IVY-811) Maven scope defined in POM dependencyManagement section not honoured

Posted by "Rick Riemer (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/IVY-811?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rick Riemer updated IVY-811:
----------------------------

    Attachment: picocontainer.original-1.2.pom

> Maven scope defined in POM dependencyManagement section not honoured
> --------------------------------------------------------------------
>
>                 Key: IVY-811
>                 URL: https://issues.apache.org/jira/browse/IVY-811
>             Project: Ivy
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 2.0.0-beta-2
>         Environment:  * Windows XP SP2
>  * Sun Java 6 SE 1.6.0_05
>  * Apache Ant 1.7.0
>            Reporter: Rick Riemer
>             Fix For: 2.0
>
>         Attachments: ivy-1.2_picocontainer-parent.xml, picocontainer-parent.original-1.2.pom, picocontainer.original-1.2.pom
>
>
> When resolving dependencies from Maven POMs, Ivy seems to ignore the dependency scopes as defined in the dependencyManagement section. For example when our project imports the org.picocontainer#picocontainer;1.2 project, Ivy considers xpp3#xpp3 and xstream#xstream as normal dependencies, while picocontainer-parent only includes them on test scope.
> I will attach the picocontainer POMs and the generated Ivy file to show what happens.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (IVY-811) Maven scope defined in POM dependencyManagement section not honoured

Posted by "Rick Riemer (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/IVY-811?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rick Riemer updated IVY-811:
----------------------------

    Attachment: picocontainer-parent.original-1.2.pom

> Maven scope defined in POM dependencyManagement section not honoured
> --------------------------------------------------------------------
>
>                 Key: IVY-811
>                 URL: https://issues.apache.org/jira/browse/IVY-811
>             Project: Ivy
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 2.0.0-beta-2
>         Environment:  * Windows XP SP2
>  * Sun Java 6 SE 1.6.0_05
>  * Apache Ant 1.7.0
>            Reporter: Rick Riemer
>             Fix For: 2.0
>
>         Attachments: ivy-1.2_picocontainer-parent.xml, picocontainer-parent.original-1.2.pom, picocontainer.original-1.2.pom
>
>
> When resolving dependencies from Maven POMs, Ivy seems to ignore the dependency scopes as defined in the dependencyManagement section. For example when our project imports the org.picocontainer#picocontainer;1.2 project, Ivy considers xpp3#xpp3 and xstream#xstream as normal dependencies, while picocontainer-parent only includes them on test scope.
> I will attach the picocontainer POMs and the generated Ivy file to show what happens.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (IVY-811) Maven scope defined in POM dependencyManagement section not honoured

Posted by "Rick Riemer (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/IVY-811?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rick Riemer updated IVY-811:
----------------------------

    Attachment: ivy-1.2-picocontainer.xml

> Maven scope defined in POM dependencyManagement section not honoured
> --------------------------------------------------------------------
>
>                 Key: IVY-811
>                 URL: https://issues.apache.org/jira/browse/IVY-811
>             Project: Ivy
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 2.0.0-beta-2
>         Environment:  * Windows XP SP2
>  * Sun Java 6 SE 1.6.0_05
>  * Apache Ant 1.7.0
>            Reporter: Rick Riemer
>             Fix For: 2.0
>
>         Attachments: ivy-1.2-picocontainer.xml, ivy-1.2_picocontainer-parent.xml, picocontainer-parent.original-1.2.pom, picocontainer.original-1.2.pom
>
>
> When resolving dependencies from Maven POMs, Ivy seems to ignore the dependency scopes as defined in the dependencyManagement section. For example when our project imports the org.picocontainer#picocontainer;1.2 project, Ivy considers xpp3#xpp3 and xstream#xstream as normal dependencies, while picocontainer-parent only includes them on test scope.
> I will attach the picocontainer POMs and the generated Ivy file to show what happens.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.