On 19 July 2010 06:10, Haszlakiewicz, Eric <[email protected]> wrote:
> >-----Original Message----- > >From: Shan Syed [mailto:[email protected]] > > > >http://maven.apache.org/plugins/maven-release-plugin/examples/update- > >versions.html > > > >On Tue, Jul 6, 2010 at 5:06 PM, Frank Maritato > ><[email protected]> wrote: > >> I have a multimodule maven project and I want to change the version > >number. > >> Unfortunately, it looks like I have to manually edit each pom.xml (or > >write > >> some sort of perl script) to accomplish this. Is there a better, > cooler, > >> faster way to do this? Maybe with a plugin of some sort? > > You can also set the version as a property in a top-level profiles.xml > file, and refer to it in all of your pom files. If it's the /project/version or /project/parent/version that you are trying to use a property for then you will completely mess up the remote repo you are deploying to. For updating those versions, which AFAIK is what the OP was after, you have three choices: 1. do it all by hand 2. versions:set -DnewVersion=_____ 3. that goal on the release plugin -Stephen > IMO it's much cleaner > to have only one place to change, and the relationship between things be > explicitly visible in the files, rather than having it hidden behind a > command that you need to run. > > eric > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > >
