Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Create a mvn6 shell script and add it to your PATH. This script makes sure you use Java 6 to build the release.

/usr/bin/mvn5mvn6

Code Block
#!/bin/sh
JAVA_HOME="/usr/lib/jvm/java-1.6.0-sun"
mvn $@

test the script by running this command:

Code Block
>mvn5>mvn6 --version
Apache Maven 2.2.1 (r801777; 2009-08-06 20:16:01+0100)
Java version: 1.6.0_33
Java home: /usr/lib/jvm/java-1.6.0-sun-1.6.0.33/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux" version: "2.6.28-15-generic" arch: "amd64" Family: "unix"

...

Info

Wiki Markup
You will be asked about the release versions. Make sure you enter a *correct tag: apache-empire-db-\[version\]-rc\[nr\]*. Once the release vote passes we can then copy this -rcX tag to the final version tag.

Code Block
>mvn5>mvn6 clean install
...
>mvn5>mvn6 clean release:clean
...
>mvn5>mvn6 release:prepare -Papache-release
...
[INFO] Checking dependencies and plugins for snapshots ...
What is the release version for "Apache Empire-db Parent"? (org.apache.empire-db:empire-db-parent) 2.0.5: : 
What is SCM release tag or label for "Apache Empire-db Parent"? (org.apache.empire-db:empire-db-parent) empire-db-parent-2.0.5: : apache-empire-db-2.0.5-rc3
What is the new development version for "Apache Empire-db Parent"? (org.apache.empire-db:empire-db-parent) 2.0.6-SNAPSHOT: : 
[INFO] Transforming 'Apache Empire-db Parent'...
[INFO] Updating empire-db to 2.0.5
...

...

If anything goes wrong during the release you can do a rollback:

Code Block
>mvn5>mvn6 release:rollback

Also run a svn diff/revert to make sure your working copy is clean

...

This step will upload the artifacts the the staging repository

Code Block
>mvn5>mvn6 release:perform

Close the staging repository

...

Code Block
>svn checkout https://svn.apache.org/repos/asf/empire-db/tags/apache-empire-db-2.0.5-rc3
...
>cd apache-empire-db-2.0.5-rc3/empire-db-dist/
>mvn5>mvn6 clean install -Papache-release
>./checksums.sh
...
All Done. Files available in ./target

...