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

[jira] Created: (IVY-955) maven pom parser is not handling pom properties (e.g $(project.parent.version} )

maven pom parser is not handling pom properties (e.g $(project.parent.version} )
--------------------------------------------------------------------------------

                 Key: IVY-955
                 URL: https://issues.apache.org/jira/browse/IVY-955
             Project: Ivy
          Issue Type: Improvement
          Components: Maven Compatibility
    Affects Versions: 2.0-RC1
         Environment: All
            Reporter: Gopalakrishnan


Maven pom parser is NOT substituting pom properties with actual values after parsing. 

For e.g when I add a maven artifact with the following pom as dependency in ivy.xml, 

    <parent>
        <groupId>com.example</groupId>
        <artifactId>aparent</artifactId>
        <version>1.0.0</version>
    </parent>

    <groupId>com.example</groupId>
    <artifactId>myartifact</artifactId>
    <packaging>jar</packaging>
    <name>Example</name>
    <description>Example.</description>
    <dependencies>
        <dependency>
            <groupId>com.example</groupId>
            <artifactId>a2</artifactId>
            <version>${project.parent.version}</version>
            <scope>compile</scope>
        </dependency>
    <dependencies>

ivy fails to resolve a2 dependency. Ivy seems to be looking for artifact com.example.a2-${project.parent.version} instead of searching for com.example.a2-1.0.0 i.e substitute the property with actual value. 


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


[jira] Updated: (IVY-955) maven pom parser is not handling pom property ${project.parent.version}

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

Maarten Coene updated IVY-955:
------------------------------

    Issue Type: Bug  (was: Improvement)

> maven pom parser is not handling pom property ${project.parent.version}
> -----------------------------------------------------------------------
>
>                 Key: IVY-955
>                 URL: https://issues.apache.org/jira/browse/IVY-955
>             Project: Ivy
>          Issue Type: Bug
>          Components: Maven Compatibility
>    Affects Versions: 2.0-RC1
>         Environment: All
>            Reporter: Gopalakrishnan
>            Assignee: Maarten Coene
>             Fix For: 2.0-RC2
>
>
> Maven pom parser is NOT substituting pom properties with actual values after parsing. 
> For e.g when I add a maven artifact with the following pom as dependency in ivy.xml, 
>     <parent>
>         <groupId>com.example</groupId>
>         <artifactId>aparent</artifactId>
>         <version>1.0.0</version>
>     </parent>
>     <groupId>com.example</groupId>
>     <artifactId>myartifact</artifactId>
>     <packaging>jar</packaging>
>     <name>Example</name>
>     <description>Example.</description>
>     <dependencies>
>         <dependency>
>             <groupId>com.example</groupId>
>             <artifactId>a2</artifactId>
>             <version>${project.parent.version}</version>
>             <scope>compile</scope>
>         </dependency>
>     <dependencies>
> ivy fails to resolve a2 dependency. Ivy seems to be looking for artifact com.example.a2-${project.parent.version} instead of searching for com.example.a2-1.0.0 i.e substitute the property with actual value. 

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


[jira] Commented: (IVY-955) maven pom parser is not handling pom properties (e.g $(project.parent.version} )

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

Maarten Coene commented on IVY-955:
-----------------------------------

The problem still exist on latest trunk, so IVY-914 was another issue.

> maven pom parser is not handling pom properties (e.g $(project.parent.version} )
> --------------------------------------------------------------------------------
>
>                 Key: IVY-955
>                 URL: https://issues.apache.org/jira/browse/IVY-955
>             Project: Ivy
>          Issue Type: Improvement
>          Components: Maven Compatibility
>    Affects Versions: 2.0-RC1
>         Environment: All
>            Reporter: Gopalakrishnan
>            Assignee: Maarten Coene
>
> Maven pom parser is NOT substituting pom properties with actual values after parsing. 
> For e.g when I add a maven artifact with the following pom as dependency in ivy.xml, 
>     <parent>
>         <groupId>com.example</groupId>
>         <artifactId>aparent</artifactId>
>         <version>1.0.0</version>
>     </parent>
>     <groupId>com.example</groupId>
>     <artifactId>myartifact</artifactId>
>     <packaging>jar</packaging>
>     <name>Example</name>
>     <description>Example.</description>
>     <dependencies>
>         <dependency>
>             <groupId>com.example</groupId>
>             <artifactId>a2</artifactId>
>             <version>${project.parent.version}</version>
>             <scope>compile</scope>
>         </dependency>
>     <dependencies>
> ivy fails to resolve a2 dependency. Ivy seems to be looking for artifact com.example.a2-${project.parent.version} instead of searching for com.example.a2-1.0.0 i.e substitute the property with actual value. 

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


[jira] Resolved: (IVY-955) maven pom parser is not handling pom property ${project.parent.version}

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

Maarten Coene resolved IVY-955.
-------------------------------

    Resolution: Fixed

I've committed a fix into SVN (2.0.0-rc2 branch).
Thanks for reporting!

> maven pom parser is not handling pom property ${project.parent.version}
> -----------------------------------------------------------------------
>
>                 Key: IVY-955
>                 URL: https://issues.apache.org/jira/browse/IVY-955
>             Project: Ivy
>          Issue Type: Improvement
>          Components: Maven Compatibility
>    Affects Versions: 2.0-RC1
>         Environment: All
>            Reporter: Gopalakrishnan
>            Assignee: Maarten Coene
>             Fix For: 2.0-RC2
>
>
> Maven pom parser is NOT substituting pom properties with actual values after parsing. 
> For e.g when I add a maven artifact with the following pom as dependency in ivy.xml, 
>     <parent>
>         <groupId>com.example</groupId>
>         <artifactId>aparent</artifactId>
>         <version>1.0.0</version>
>     </parent>
>     <groupId>com.example</groupId>
>     <artifactId>myartifact</artifactId>
>     <packaging>jar</packaging>
>     <name>Example</name>
>     <description>Example.</description>
>     <dependencies>
>         <dependency>
>             <groupId>com.example</groupId>
>             <artifactId>a2</artifactId>
>             <version>${project.parent.version}</version>
>             <scope>compile</scope>
>         </dependency>
>     <dependencies>
> ivy fails to resolve a2 dependency. Ivy seems to be looking for artifact com.example.a2-${project.parent.version} instead of searching for com.example.a2-1.0.0 i.e substitute the property with actual value. 

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


[jira] Issue Comment Edited: (IVY-955) maven pom parser is not handling pom properties (e.g $(project.parent.version} )

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

ugopalak edited comment on IVY-955 at 10/23/08 4:40 AM:
--------------------------------------------------------------

Looks like http://issues.apache.org/jira/browse/IVY-914 already addresses this issue. Will try with the latest build.

      was (Author: ugopalak):
    Looks like http://issues.apache.org/jira/browse/IVY-955 already addresses this. Will try with the latest build.
  
> maven pom parser is not handling pom properties (e.g $(project.parent.version} )
> --------------------------------------------------------------------------------
>
>                 Key: IVY-955
>                 URL: https://issues.apache.org/jira/browse/IVY-955
>             Project: Ivy
>          Issue Type: Improvement
>          Components: Maven Compatibility
>    Affects Versions: 2.0-RC1
>         Environment: All
>            Reporter: Gopalakrishnan
>
> Maven pom parser is NOT substituting pom properties with actual values after parsing. 
> For e.g when I add a maven artifact with the following pom as dependency in ivy.xml, 
>     <parent>
>         <groupId>com.example</groupId>
>         <artifactId>aparent</artifactId>
>         <version>1.0.0</version>
>     </parent>
>     <groupId>com.example</groupId>
>     <artifactId>myartifact</artifactId>
>     <packaging>jar</packaging>
>     <name>Example</name>
>     <description>Example.</description>
>     <dependencies>
>         <dependency>
>             <groupId>com.example</groupId>
>             <artifactId>a2</artifactId>
>             <version>${project.parent.version}</version>
>             <scope>compile</scope>
>         </dependency>
>     <dependencies>
> ivy fails to resolve a2 dependency. Ivy seems to be looking for artifact com.example.a2-${project.parent.version} instead of searching for com.example.a2-1.0.0 i.e substitute the property with actual value. 

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


[jira] Commented: (IVY-955) maven pom parser is not handling pom properties (e.g $(project.parent.version} )

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

Gopalakrishnan commented on IVY-955:
------------------------------------

Looks like http://issues.apache.org/jira/browse/IVY-955 already addresses this. Will try with the latest build.

> maven pom parser is not handling pom properties (e.g $(project.parent.version} )
> --------------------------------------------------------------------------------
>
>                 Key: IVY-955
>                 URL: https://issues.apache.org/jira/browse/IVY-955
>             Project: Ivy
>          Issue Type: Improvement
>          Components: Maven Compatibility
>    Affects Versions: 2.0-RC1
>         Environment: All
>            Reporter: Gopalakrishnan
>
> Maven pom parser is NOT substituting pom properties with actual values after parsing. 
> For e.g when I add a maven artifact with the following pom as dependency in ivy.xml, 
>     <parent>
>         <groupId>com.example</groupId>
>         <artifactId>aparent</artifactId>
>         <version>1.0.0</version>
>     </parent>
>     <groupId>com.example</groupId>
>     <artifactId>myartifact</artifactId>
>     <packaging>jar</packaging>
>     <name>Example</name>
>     <description>Example.</description>
>     <dependencies>
>         <dependency>
>             <groupId>com.example</groupId>
>             <artifactId>a2</artifactId>
>             <version>${project.parent.version}</version>
>             <scope>compile</scope>
>         </dependency>
>     <dependencies>
> ivy fails to resolve a2 dependency. Ivy seems to be looking for artifact com.example.a2-${project.parent.version} instead of searching for com.example.a2-1.0.0 i.e substitute the property with actual value. 

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


[jira] Updated: (IVY-955) maven pom parser is not handling pom property ${project.parent.version}

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

Maarten Coene updated IVY-955:
------------------------------

    Fix Version/s: 2.0-RC2
          Summary: maven pom parser is not handling pom property ${project.parent.version}  (was: maven pom parser is not handling pom properties (e.g $(project.parent.version} ))

> maven pom parser is not handling pom property ${project.parent.version}
> -----------------------------------------------------------------------
>
>                 Key: IVY-955
>                 URL: https://issues.apache.org/jira/browse/IVY-955
>             Project: Ivy
>          Issue Type: Improvement
>          Components: Maven Compatibility
>    Affects Versions: 2.0-RC1
>         Environment: All
>            Reporter: Gopalakrishnan
>            Assignee: Maarten Coene
>             Fix For: 2.0-RC2
>
>
> Maven pom parser is NOT substituting pom properties with actual values after parsing. 
> For e.g when I add a maven artifact with the following pom as dependency in ivy.xml, 
>     <parent>
>         <groupId>com.example</groupId>
>         <artifactId>aparent</artifactId>
>         <version>1.0.0</version>
>     </parent>
>     <groupId>com.example</groupId>
>     <artifactId>myartifact</artifactId>
>     <packaging>jar</packaging>
>     <name>Example</name>
>     <description>Example.</description>
>     <dependencies>
>         <dependency>
>             <groupId>com.example</groupId>
>             <artifactId>a2</artifactId>
>             <version>${project.parent.version}</version>
>             <scope>compile</scope>
>         </dependency>
>     <dependencies>
> ivy fails to resolve a2 dependency. Ivy seems to be looking for artifact com.example.a2-${project.parent.version} instead of searching for com.example.a2-1.0.0 i.e substitute the property with actual value. 

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


[jira] Assigned: (IVY-955) maven pom parser is not handling pom properties (e.g $(project.parent.version} )

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

Maarten Coene reassigned IVY-955:
---------------------------------

    Assignee: Maarten Coene

> maven pom parser is not handling pom properties (e.g $(project.parent.version} )
> --------------------------------------------------------------------------------
>
>                 Key: IVY-955
>                 URL: https://issues.apache.org/jira/browse/IVY-955
>             Project: Ivy
>          Issue Type: Improvement
>          Components: Maven Compatibility
>    Affects Versions: 2.0-RC1
>         Environment: All
>            Reporter: Gopalakrishnan
>            Assignee: Maarten Coene
>
> Maven pom parser is NOT substituting pom properties with actual values after parsing. 
> For e.g when I add a maven artifact with the following pom as dependency in ivy.xml, 
>     <parent>
>         <groupId>com.example</groupId>
>         <artifactId>aparent</artifactId>
>         <version>1.0.0</version>
>     </parent>
>     <groupId>com.example</groupId>
>     <artifactId>myartifact</artifactId>
>     <packaging>jar</packaging>
>     <name>Example</name>
>     <description>Example.</description>
>     <dependencies>
>         <dependency>
>             <groupId>com.example</groupId>
>             <artifactId>a2</artifactId>
>             <version>${project.parent.version}</version>
>             <scope>compile</scope>
>         </dependency>
>     <dependencies>
> ivy fails to resolve a2 dependency. Ivy seems to be looking for artifact com.example.a2-${project.parent.version} instead of searching for com.example.a2-1.0.0 i.e substitute the property with actual value. 

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