javamavenwebmaven-release-pluginmaven-scm

Deploy on Release


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,

How to deploy the xxx-1.9-FINAL.war and xxx-2.0-SNAPSHOT.war using scp?

Some important benefits:

  1. If the war could not be scped the release shall fail.
  2. If the release fail, the war should not be deployed.
  3. The pom.xml must contain a container-version.

Solution

  • This is not possible by design

    There is no way to yield failed deployments to webcontainers.