maven release script for wonder
Project: Project Wonder
Issue Type: New Feature
Reporter: Lachlan Deck
Assigned To: Anjo Krank
I'm attaching a patch which adds Build/build/maven.release.xml and updates BUILD.txt with basic information about it. The script itself has usage info via its default target 'help'.
Essentially the script automates
- mvn clean
- an svn revert
- an svn up (can be disabled),
- regex replacing the pom versions with svn version (e.g., 5.0.0-SNAPSHOT to 126.96.36.1994),
- package, install, or deploy with relevant properties
- mvn clean,
- revert (can be disabled)
$ ant -f Build/build/maven.release.xml
[echo] -DmvnProfile=[wo54|wo53] [-Dwoversion=x.x.x] package
[echo] -DmvnProfile=[wo54|wo53] [-Dwoversion=x.x.x] install
[echo] -DmvnProfile=[wo54|wo53] [-Dwoversion=x.x.x] deploy -DmyRepoId=foo -DmyRepoURL='bar' [-DmyRepoLayout=baz]
[echo] Additional properties: [-Drevert=false] [-Dupdate=false]
[echo] Description: Updates the source, replaces pom versions with the scm version (e.g., 5.0.0-SNAPSHOT to 188.8.131.5279), performs the maven goal (e.g., install or deploy), reverts the source.
Total time: 0 seconds
So the following will suffice to deploy to your intranet's repo:
ant -f Build/build/maven.release.xml -DmvnProfile=wo54 deploy -DmyRepoId=foo -DmyRepoURL=https://.....
This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators: http://issues.objectstyle.org/jira/secure/Administrators.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira