<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/3.18.3">
</HEAD>
<BODY>
Hi,<BR>
<BR>
I have a multi-module Maven project, some modules again have modules, plus there are some subdirs with "child" artifact.<BR>
<BR>
=== What's the best way to change a version of certain artifact in the whole tree? ===<BR>
<BR>
This was discussed some time ago on some mailing list, and IIRC, the unspoken conclusion was to use something like<BR>
<BR>
perl -pi -e 's/1.1.0.GA-SNAPSHOT/1.1.0.GA-HTMLUnit26/g' `find . -name pom.xml`<BR>
<BR>
See <A HREF="http://community.jboss.org/wiki/DavidsMavenReleaseProcess">http://community.jboss.org/wiki/DavidsMavenReleaseProcess</A> <BR>
<BR>
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.<BR>
<BR>
=== But first - is there some Maven plugin or tool to do this? (EXCEPT MAVEN RELEASE PLUGIN, see the discussion.) ===<BR>
<BR>
<BR>
Thanks for tips,<BR>
Ondra
</BODY>
</HTML>