Skip to content

Release and deploy

Imad laghrissi edited this page Jan 9, 2020 · 8 revisions

Release steps

Pre-release

  1. git checkout <YOUR_BRANCH>
  2. git pull

Release

  1. change pom version :
    mvn versions:set -DnewVersion=x.y.z -DgenerateBackupPoms=false
  2. run : mvn clean install
  3. git commit -m "update to version x.y.z
  4. create tag and push it:
    git tag -a vx.y.z -m "my version x.y.z"
    git push origin vx.y.z

Post-release

  1. change pom to next SNAPSHOT (x.y+1.z). if you want to delievre bug change bugFix (x.y.z+1)
    mvn versions:set -DnewVersion=x.y+1.z-SNAPSHOT -DgenerateBackupPoms=false
  2. commit and push :
    git commit -m "update to vx.y+1.z"
    git push -u origin <YOUR_BRANCH>

Deploy steps

after clean install deploy your generated war in tomcat

  1. Go to : $CATALINA_HOME/bin
  2. Shutdown server : catalina.bat stop
  3. Put your war in $CATALINA_HOME/bin/webapps
  4. Run server : catalina.bat run
  5. Go to : http://localhost:8080/<CONTEXT_OF_YOUR_APP>
Clone this wiki locally