Releasing the source code
Once all code is compiled and tested, and the dependencies have been checked, it is time to release the software.
For a final Version
x.y.0, best practice consists in:
- Tagging the Version
x.y.0and removing its
- Creating a new branch
x.ythat will generate snapshots (
x.y.2-SNAPSHOT, and so on) and releases (
x.y.2, and so on)
- Upgrading the version of the trunk to
The Maven Release plugin
Maven Release plugin can help you in performing these tasks with the minimum human intervention possible. Here is an example of a minimal POM using Maven Release:
<?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ...