THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
Creating the Camel Release
- Prepare env and directory structure
Code Block export PROJ=apache-camel export PROJVER=<x.y.z> mkdir $HOME/$PROJ-$PROJVER mkdir $HOME/$PROJ-$PROJVER/maven2 mkdir $HOME/$PROJ-$PROJVER/maven mkdir $HOME/$PROJ-$PROJVER/site
- Grab the latest source from SVN
Code Block svn co https://svn.apache.org/repos/asf/activemq/camel/trunk camel cd camel
- Change the version number in:
- pom.xml - in the project root and all
...
- sub-projects
- the value of <camel-version> property in the root pom.xml
- Note: The command below will do the trick (replace for the appropriate version); use x.y.z-RCn for a release candidate
Code Block find . -name pom.xml | grep -v .svn | xargs sed -i -e s/x.y-SNAPSHOT/
...
$PROJVER/g
- Let Maven build, test, package, and deploy the binaries
Code Block mvn clean source:jar deploy -Drelease-repo-url=file:$HOME/.m2/repository$PROJ-$PROJVER/maven2 -Dm1-repo-url=file:$HOME/.$PROJ-$PROJVER/maven -P release
- Build the camel site and javadoc (you will need graphviz installed and the dot program in the path)
Code Block mvn -Dsite-repo-url=file:$HOME/$PROJ-$PROJVER/site -Dmaven.test.skip.exec=true site:site mvn -Dsite-repo-url=file:$HOME/$PROJ-$PROJVER/site -Dmaven.test.skip.exec=true site:deploy
- Tag the release using your local workspace to a new CAMEL_X_Y label
Code Block svn copy ../camel https://svn.apache.org/repos/asf/activemq/camel/tags/camel-x.y.z -m "Camel x.y.z Release"
...