Releasing a Maven project
The ultimate goal of any project is the release. After development is complete and bugs are fixed, it is time to release the project. Different projects are released in different ways. Web projects are released by deploying them to the web server. Other projects may be packaged into executable JARs. Still others may be packaged as executables or installers. If the project is a library or a dependency used in other projects, then it needs to be made available suitably.
As we have seen before, we use the SNAPSHOT
version during development. When the project has to be released, this version now needs to be replaced with a concrete version.
One of the most advanced features of Maven is its support to do a project release. Let us explore this.
How to do it...
- Open a project for which you want to do a release (
project-with-release
). - Verify if the SCM details are present in the pom file:
<scm> <developerConnection>scm:git:https://bitbucket.org/maruhgar/apache...