You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by "Andrey Lomakin (JIRA)" <ji...@apache.org> on 2009/04/07 11:27:14 UTC

[jira] Created: (IVY-1058) PomModuleDescriptorBuilder does not resolve ejb type dependencies to jar extension.

PomModuleDescriptorBuilder does not resolve ejb type dependencies to jar extension.
-----------------------------------------------------------------------------------

                 Key: IVY-1058
                 URL: https://issues.apache.org/jira/browse/IVY-1058
             Project: Ivy
          Issue Type: Bug
          Components: Maven Compatibility
    Affects Versions: 2.0
            Reporter: Andrey Lomakin


During of parsing POM module dependency with type ejb, method PomModuleDescriptorBuilder#addDependency should use 
PomModuleDescriptorBuilder#JAR_PACKAGINGS List as well as PomModuleDescriptorBuilder#addMainArtifact method.
For example if I use following code
{code:xml} 
<dependency org="org.jboss.seam" name="jboss-seam-ui" rev="2.1.1.GA" conf="compile,production->default"/> 
{code}
in ivy.xml, dependency 
org.jboss.seam#jboss-seam;2.1.1.GA!jboss-seam.ejb module will be tried to load instead of  org.jboss.seam#jboss-seam;2.1.1.GA!jboss-seam.jar module.
In the pom.xml this dependency is described like:
{code:xml} 
<dependency>
      <groupId>org.jboss.seam</groupId>
      <artifactId>jboss-seam</artifactId>
      <type>ejb</type>
</dependency>
{code} 

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


[jira] Updated: (IVY-1058) PomModuleDescriptorBuilder does not resolve ejb type dependencies to jar extension.

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

Andrey Lomakin updated IVY-1058:
--------------------------------

    Attachment: IVY-1058_2009_04_07.patch

> PomModuleDescriptorBuilder does not resolve ejb type dependencies to jar extension.
> -----------------------------------------------------------------------------------
>
>                 Key: IVY-1058
>                 URL: https://issues.apache.org/jira/browse/IVY-1058
>             Project: Ivy
>          Issue Type: Bug
>          Components: Maven Compatibility
>    Affects Versions: 2.0
>            Reporter: Andrey Lomakin
>         Attachments: IVY-1058_2009_04_07.patch
>
>
> During of parsing POM module dependency with type ejb, method PomModuleDescriptorBuilder#addDependency should use 
> PomModuleDescriptorBuilder#JAR_PACKAGINGS List as well as PomModuleDescriptorBuilder#addMainArtifact method.
> For example if I use following code
> {code:xml} 
> <dependency org="org.jboss.seam" name="jboss-seam-ui" rev="2.1.1.GA" conf="compile,production->default"/> 
> {code}
> in ivy.xml, dependency 
> org.jboss.seam#jboss-seam;2.1.1.GA!jboss-seam.ejb module will be tried to load instead of  org.jboss.seam#jboss-seam;2.1.1.GA!jboss-seam.jar module.
> In the pom.xml this dependency is described like:
> {code:xml} 
> <dependency>
>       <groupId>org.jboss.seam</groupId>
>       <artifactId>jboss-seam</artifactId>
>       <type>ejb</type>
> </dependency>
> {code} 

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


[jira] Commented: (IVY-1058) PomModuleDescriptorBuilder does not resolve ejb type dependencies to jar extension.

Posted by "Jason Porter (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/IVY-1058?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12702132#action_12702132 ] 

Jason Porter commented on IVY-1058:
-----------------------------------

The problem is when an ejb type is resolved as a transitive dependency when you don't have control over it unless you explicitly tell it what to do.

> PomModuleDescriptorBuilder does not resolve ejb type dependencies to jar extension.
> -----------------------------------------------------------------------------------
>
>                 Key: IVY-1058
>                 URL: https://issues.apache.org/jira/browse/IVY-1058
>             Project: Ivy
>          Issue Type: Bug
>          Components: Maven Compatibility
>    Affects Versions: 2.0
>            Reporter: Andrey Lomakin
>            Assignee: Maarten Coene
>             Fix For: trunk
>
>         Attachments: IVY-1058_2009_04_07.patch
>
>
> During of parsing POM module dependency with type ejb, method PomModuleDescriptorBuilder#addDependency should use 
> PomModuleDescriptorBuilder#JAR_PACKAGINGS List as well as PomModuleDescriptorBuilder#addMainArtifact method.
> For example if I use following code
> {code:xml} 
> <dependency org="org.jboss.seam" name="jboss-seam-ui" rev="2.1.1.GA" conf="compile,production->default"/> 
> {code}
> in ivy.xml, dependency 
> org.jboss.seam#jboss-seam;2.1.1.GA!jboss-seam.ejb module will be tried to load instead of  org.jboss.seam#jboss-seam;2.1.1.GA!jboss-seam.jar module.
> In the pom.xml this dependency is described like:
> {code:xml} 
> <dependency>
>       <groupId>org.jboss.seam</groupId>
>       <artifactId>jboss-seam</artifactId>
>       <type>ejb</type>
> </dependency>
> {code} 

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


[jira] Resolved: (IVY-1058) PomModuleDescriptorBuilder does not resolve ejb type dependencies to jar extension.

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

Maarten Coene resolved IVY-1058.
--------------------------------

       Resolution: Fixed
    Fix Version/s: trunk

Thanks for the contribution Andrey! I've applied your patch into SVN trunk + added a junit test. Could you give it a try?

> PomModuleDescriptorBuilder does not resolve ejb type dependencies to jar extension.
> -----------------------------------------------------------------------------------
>
>                 Key: IVY-1058
>                 URL: https://issues.apache.org/jira/browse/IVY-1058
>             Project: Ivy
>          Issue Type: Bug
>          Components: Maven Compatibility
>    Affects Versions: 2.0
>            Reporter: Andrey Lomakin
>            Assignee: Maarten Coene
>             Fix For: trunk
>
>         Attachments: IVY-1058_2009_04_07.patch
>
>
> During of parsing POM module dependency with type ejb, method PomModuleDescriptorBuilder#addDependency should use 
> PomModuleDescriptorBuilder#JAR_PACKAGINGS List as well as PomModuleDescriptorBuilder#addMainArtifact method.
> For example if I use following code
> {code:xml} 
> <dependency org="org.jboss.seam" name="jboss-seam-ui" rev="2.1.1.GA" conf="compile,production->default"/> 
> {code}
> in ivy.xml, dependency 
> org.jboss.seam#jboss-seam;2.1.1.GA!jboss-seam.ejb module will be tried to load instead of  org.jboss.seam#jboss-seam;2.1.1.GA!jboss-seam.jar module.
> In the pom.xml this dependency is described like:
> {code:xml} 
> <dependency>
>       <groupId>org.jboss.seam</groupId>
>       <artifactId>jboss-seam</artifactId>
>       <type>ejb</type>
> </dependency>
> {code} 

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


[jira] Commented: (IVY-1058) PomModuleDescriptorBuilder does not resolve ejb type dependencies to jar extension.

Posted by "Stephane Epardaud (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/IVY-1058?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12701473#action_12701473 ] 

Stephane Epardaud commented on IVY-1058:
----------------------------------------

I can confirm it fixes it for me although I didn't find a way to make the jar go into my "[type]/" folder with type==jar (it goes in ejb/)


> PomModuleDescriptorBuilder does not resolve ejb type dependencies to jar extension.
> -----------------------------------------------------------------------------------
>
>                 Key: IVY-1058
>                 URL: https://issues.apache.org/jira/browse/IVY-1058
>             Project: Ivy
>          Issue Type: Bug
>          Components: Maven Compatibility
>    Affects Versions: 2.0
>            Reporter: Andrey Lomakin
>            Assignee: Maarten Coene
>             Fix For: trunk
>
>         Attachments: IVY-1058_2009_04_07.patch
>
>
> During of parsing POM module dependency with type ejb, method PomModuleDescriptorBuilder#addDependency should use 
> PomModuleDescriptorBuilder#JAR_PACKAGINGS List as well as PomModuleDescriptorBuilder#addMainArtifact method.
> For example if I use following code
> {code:xml} 
> <dependency org="org.jboss.seam" name="jboss-seam-ui" rev="2.1.1.GA" conf="compile,production->default"/> 
> {code}
> in ivy.xml, dependency 
> org.jboss.seam#jboss-seam;2.1.1.GA!jboss-seam.ejb module will be tried to load instead of  org.jboss.seam#jboss-seam;2.1.1.GA!jboss-seam.jar module.
> In the pom.xml this dependency is described like:
> {code:xml} 
> <dependency>
>       <groupId>org.jboss.seam</groupId>
>       <artifactId>jboss-seam</artifactId>
>       <type>ejb</type>
> </dependency>
> {code} 

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


[jira] Updated: (IVY-1058) PomModuleDescriptorBuilder does not resolve ejb type dependencies to jar extension.

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

Maarten Coene updated IVY-1058:
-------------------------------

    Fix Version/s:     (was: trunk)
                   2.1.0-RC2

> PomModuleDescriptorBuilder does not resolve ejb type dependencies to jar extension.
> -----------------------------------------------------------------------------------
>
>                 Key: IVY-1058
>                 URL: https://issues.apache.org/jira/browse/IVY-1058
>             Project: Ivy
>          Issue Type: Bug
>          Components: Maven Compatibility
>    Affects Versions: 2.0
>            Reporter: Andrey Lomakin
>            Assignee: Maarten Coene
>             Fix For: 2.1.0-RC2
>
>         Attachments: IVY-1058_2009_04_07.patch
>
>
> During of parsing POM module dependency with type ejb, method PomModuleDescriptorBuilder#addDependency should use 
> PomModuleDescriptorBuilder#JAR_PACKAGINGS List as well as PomModuleDescriptorBuilder#addMainArtifact method.
> For example if I use following code
> {code:xml} 
> <dependency org="org.jboss.seam" name="jboss-seam-ui" rev="2.1.1.GA" conf="compile,production->default"/> 
> {code}
> in ivy.xml, dependency 
> org.jboss.seam#jboss-seam;2.1.1.GA!jboss-seam.ejb module will be tried to load instead of  org.jboss.seam#jboss-seam;2.1.1.GA!jboss-seam.jar module.
> In the pom.xml this dependency is described like:
> {code:xml} 
> <dependency>
>       <groupId>org.jboss.seam</groupId>
>       <artifactId>jboss-seam</artifactId>
>       <type>ejb</type>
> </dependency>
> {code} 

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


[jira] Assigned: (IVY-1058) PomModuleDescriptorBuilder does not resolve ejb type dependencies to jar extension.

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

Maarten Coene reassigned IVY-1058:
----------------------------------

    Assignee: Maarten Coene

> PomModuleDescriptorBuilder does not resolve ejb type dependencies to jar extension.
> -----------------------------------------------------------------------------------
>
>                 Key: IVY-1058
>                 URL: https://issues.apache.org/jira/browse/IVY-1058
>             Project: Ivy
>          Issue Type: Bug
>          Components: Maven Compatibility
>    Affects Versions: 2.0
>            Reporter: Andrey Lomakin
>            Assignee: Maarten Coene
>         Attachments: IVY-1058_2009_04_07.patch
>
>
> During of parsing POM module dependency with type ejb, method PomModuleDescriptorBuilder#addDependency should use 
> PomModuleDescriptorBuilder#JAR_PACKAGINGS List as well as PomModuleDescriptorBuilder#addMainArtifact method.
> For example if I use following code
> {code:xml} 
> <dependency org="org.jboss.seam" name="jboss-seam-ui" rev="2.1.1.GA" conf="compile,production->default"/> 
> {code}
> in ivy.xml, dependency 
> org.jboss.seam#jboss-seam;2.1.1.GA!jboss-seam.ejb module will be tried to load instead of  org.jboss.seam#jboss-seam;2.1.1.GA!jboss-seam.jar module.
> In the pom.xml this dependency is described like:
> {code:xml} 
> <dependency>
>       <groupId>org.jboss.seam</groupId>
>       <artifactId>jboss-seam</artifactId>
>       <type>ejb</type>
> </dependency>
> {code} 

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


[jira] Commented: (IVY-1058) PomModuleDescriptorBuilder does not resolve ejb type dependencies to jar extension.

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

Maarten Coene commented on IVY-1058:
------------------------------------

Maybe you could use the [ext] token instead of the [type] token in your retrieve pattern?

> PomModuleDescriptorBuilder does not resolve ejb type dependencies to jar extension.
> -----------------------------------------------------------------------------------
>
>                 Key: IVY-1058
>                 URL: https://issues.apache.org/jira/browse/IVY-1058
>             Project: Ivy
>          Issue Type: Bug
>          Components: Maven Compatibility
>    Affects Versions: 2.0
>            Reporter: Andrey Lomakin
>            Assignee: Maarten Coene
>             Fix For: trunk
>
>         Attachments: IVY-1058_2009_04_07.patch
>
>
> During of parsing POM module dependency with type ejb, method PomModuleDescriptorBuilder#addDependency should use 
> PomModuleDescriptorBuilder#JAR_PACKAGINGS List as well as PomModuleDescriptorBuilder#addMainArtifact method.
> For example if I use following code
> {code:xml} 
> <dependency org="org.jboss.seam" name="jboss-seam-ui" rev="2.1.1.GA" conf="compile,production->default"/> 
> {code}
> in ivy.xml, dependency 
> org.jboss.seam#jboss-seam;2.1.1.GA!jboss-seam.ejb module will be tried to load instead of  org.jboss.seam#jboss-seam;2.1.1.GA!jboss-seam.jar module.
> In the pom.xml this dependency is described like:
> {code:xml} 
> <dependency>
>       <groupId>org.jboss.seam</groupId>
>       <artifactId>jboss-seam</artifactId>
>       <type>ejb</type>
> </dependency>
> {code} 

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