Book Image

Android Application Development with Maven

Book Image

Android Application Development with Maven

Overview of this book

Table of Contents (14 chapters)

Releasing a new version


Although performing a release usually is followed by deploying the packages to a Maven repository, it is not always required. This practically means that you can just release an application or distribute it manually to its users.

The release process is supported by the Maven-release plugin, but we need to make sure that the following requirements are met:

  • Although this is optional, it is highly recommended to explicitly define the version of the Maven-release plugin in the <pluginManagement> element of the pom.xml file

  • The SCM URL that points to the folder containing the pom.xml file is correctly configured in the <scm> section of the pom.xml file

  • There are no pending local modifications to be committed. Otherwise, the plugin will display an error message.

Note

The URL is prefixed with scm:[scm-provider] parameter. This way, the plugin can execute the correct commands, behind the scenes, to commit changes of the pom.xml file and do the tagging. For more information...