I am overriding from the command prompt using -Dtest.version=5
Jim Sellers wrote: > > 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 >> > > -- View this message in context: http://www.nabble.com/Overriding-the-property-value-in-child-pom.xml-tp25271120p25280841.html Sent from the Maven - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
