[jboss-dev] Maven - best way to change versions in a project tree?
ozizka at redhat.com
Mon Dec 14 13:02:10 EST 2009
Thanks for the tip - the tool seems very useful.
Unfortunatelly, my case has few nodes disconnected from the tree and
they are built separatedly - for various reasons. But I need to change
them anyway. So basically, I am looking for something that will scan all
the pom.xml's in the dir tree and replace given artifact's versions with
some version. I will try to call the plugin several times on each of the
Paul Gier píše v Po 14. 12. 2009 v 10:41 -0600:
> You can try the update-child-modules goal of the versions-maven-plugin.
> Ondřej Žižka wrote:
> > Hi,
> > I have a multi-module Maven project, some modules again have modules,
> > plus there are some subdirs with "child" artifact.
> > === What's the best way to change a version of certain artifact in the
> > whole tree? ===
> > This was discussed some time ago on some mailing list, and IIRC, the
> > unspoken conclusion was to use something like
> > perl -pi -e 's/1.1.0.GA-SNAPSHOT/1.1.0.GA-HTMLUnit26/g' `find . -name
> > pom.xml`
> > See http://community.jboss.org/wiki/DavidsMavenReleaseProcess
> > But there's a danger of replacing a version for some other artifact. I
> > don't want to create some crazy bash script to handle this case. XSLT
> > would help.
> > === But first - is there some Maven plugin or tool to do this? (EXCEPT
> > MAVEN RELEASE PLUGIN, see the discussion.) ===
> > Thanks for tips,
> > Ondra
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the jboss-development