It is possible to do as long as it's always done before Maven sees it. -----Original Message----- From: Niranjan Deshpande [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 04, 2008 6:10 AM To: [email protected] Subject: Modifying Version Number in POM
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. 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, Niranjan Deshpande "Shut yourself from the world and create the reality you want" --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
