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 thepom.xml
fileThe SCM URL that points to the folder containing the
pom.xml
file is correctly configured in the<scm>
section of thepom.xml
fileThere 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...