Actually I am doing the same way by calling mvn org.apache.maven.plugins:maven-release-plugin:2.0-beta-9:clean org.apache.maven.plugins:maven-release-plugin:2.0-beta-9:prepare -Dtest.version=5 org.apache.maven.plugins:maven-release-plugin:2.0-beta-9:perform -DdryRun=true -Dtest.version=5
But it doesnot work BRIAN FOX-5 wrote: > > The problem is that this version isn't being passed to the forked > execution of Maven that is actually performing the release. There is a > way to do that, I'll have to look it up, but generally you would be > better off with your source representing what you intend to release, > and only have the command line overrides for one-offs in development. > Otherwise your tag represents something other than what you released. > A big problem in my book... > > Here's how you pass options to the forked build during perform: > http://maven.apache.org/plugins/maven-release-plugin/perform-mojo.html#arguments > > > On Thu, Sep 3, 2009 at 1:39 PM, arulanand<arulanan...@gmail.com> wrote: >> >> 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 >>> <arulanan...@gmail.com>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: users-unsubscr...@maven.apache.org >> For additional commands, e-mail: users-h...@maven.apache.org >> >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org > > > -- View this message in context: http://www.nabble.com/Overriding-the-property-value-in-child-pom.xml-tp25271120p25299605.html Sent from the Maven - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org