I recenly released a new final version of a XaaS framework. One part of the framework is a webapplication for translation issues.
The idea is to keep the webapplication compatible to the framework. That means on every new release the released webapplication must be deployed.
To release a version i am using
mvn release:prepare release:perform
What works great.
In this command we have 3 differernt versions,
- the previous version, (i.e. 1.9-SNAPSHOT)
- the releasename-version, (i.e. 1.9-FINAL)
- the next deveopment version (i.e. 2.0-SNAPSHOT)
How to deploy the xxx-1.9-FINAL.war
and xxx-2.0-SNAPSHOT.war
using scp
?
Some important benefits:
- If the war could not be
scp
ed the release shall fail. - If the release fail, the war should not be deployed.
- The
pom.xml
must contain a container-version.