-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,
| In POM we have a version number of the project as
|
| <version>1.4</version>
|
| Instead of hardcoding it each time I take a new build, I would like to
| replace it with the one entered by the user when he takes a buld using
| maven. I want the user to enter the version number, which will be used
| placed in maven's pom.xml and then used by Maven. So this is like modifying
| the pom dynamically.
You may use a variable like this:
<version>${my.project.version}</version>

Then call maven like this:
mvn install -Dmy.project.version=1.4
|
| I was thinking to call a ant task (which in turn calls a shell script asking
| for the user to enter the version number) from within the pom when the user
| executes the *mvn install* command.
|
| Is all this possible with the approach above? How do I call a ant task that
| runs BEFORE maven proceeds for all other stuff.
| Similar to a constructor that is executed when you create a java object, i
| want this task to be run.
|
| Please help.
|

Regards
~  Jörg
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFIW18xmPuec2Dcv/8RAi2QAJ0QxLZplME5daLJM1/3195bv53/GgCfbzSu
T3Pe2NgjcSTRP8oRmbp6V7w=
=y45h
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to