jiptool / jip

Java dependency management for Jython
http://pypi.python.org/pypi/jip/
Other
59 stars 15 forks source link

Fix: Reference ${project.parent.version} not resolved in dependecy/version spec. #24

Closed saamc closed 9 years ago

saamc commented 9 years ago

Hi,

there was a problem with POMs containing dependency specs of the following kind:

        <dependency>
            <groupId>org.apache.uima</groupId>
            <artifactId>uimaj-core</artifactId>
            <version>${project.parent.version}</version>
            <scope>compile</scope>
        </dependency>

The reference ${project.parent.version} would not be resolved.

Steps to reproduce: jip install org.apache.uima:uimaj-tools:2.7.0

Result:

jip [Checking] pom file http://repo1.maven.org/maven2/org/apache/uima/uimaj-tools/2.7.0/uimaj-tools-2.7.0.pom jip [Checking] pom file http://repo1.maven.org/maven2/org/apache/uima/uimaj-cpe/${project.parent.version}/uimaj-cpe-${project.parent.version}.pom jip [Skipped] Pom file not found at http://repo1.maven.org/maven2/org/apache/uima/uimaj-cpe/${project.parent.version}/uimaj-cpe-${project.parent.version}.pom jip [Error] Artifact not found: org.apache.uima:uimaj-cpe:${project.parent.version}

sunng87 commented 9 years ago

Thanks for this fix. I will create a release soon.