Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Updated build commands

...

Creating the Camel Release

  1. 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
    
  1. Grab the latest source from SVN
    Code Block
    svn co https://svn.apache.org/repos/asf/activemq/camel/trunk camel
    cd camel
    
  1. 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
    
  1. 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
    
  1. 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
    
  1. 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"
    

...