How are you overriding it?  With
-Dtest.version=5
?

I'm assuming that you don't have that value in your settings.xml file.

Are you getting the correct dependency when you run:
mvn help:effective-pom -Dtest.version=5

Jim


On Wed, Sep 2, 2009 at 2:45 PM, Arul Anand S P <[email protected]>wrote:

> hi all,
>
> I am having a property named test.version in parent pom.xml
>
>  <properties>
>    <test.version>8</test.version>
>  </properties>
>
> and I have a the below entry in child pom.xml
>    <dependencies>
>        <dependency>
>            <groupId>com.test.data</groupId>
>            <artifactId>UtilLibrary</artifactId>
>            <version>${test.version}</version>
>        </dependency>
>  </dependencies>
>
> While executing the release:prepare from the command prompt I am
> over-riding
> the value of the property test.version to 5
> But the child pom.xml still takes the value 8 instead of 5 and is trying to
> download the file UtilLibrary-8.jar instead of UtilLibrary-5.jar
>
> Please help in resolving this
>

Reply via email to