Uploaded image for project: 'Ivy'
  1. Ivy
  2. IVY-955

maven pom parser is not handling pom property ${project.parent.version}

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.0-RC1
    • 2.0-RC2
    • Maven Compatibility
    • None
    • All

    Description

      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.

      Attachments

        Activity

          People

            maartenc Maarten Coene
            ugopalak Gopalakrishnan
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: