...
Example: During the 4.5.1 release our branches should have the version 4.5.1-SNAPSHOT
, this will be incremented on the master branch to 4.5.2-SNAPSHOT
Optional - Deploy Snapshot Artifacts
If the release candidate is coming off of a "maintenance" branch instead of master, it is possible that snapshot artifacts have not been deployed to the Sonatype snapshot repository. If this is the case, Travis will fail to build.
You can check if the snapshot artifacts exist by looking for each module. For example:
No Format |
---|
https://oss.sonatype.org/content/repositories/snapshots/org/fcrepo/fcrepo-http-commons/ |
If the snapshot artifacts do not exist, you can deploy them to Sonatype with the following command:
Code Block | ||
---|---|---|
| ||
mvn -DaltDeploymentRepository=sonatype-nexus-snapshots::default::https://oss.sonatype.org/content/repositories/snapshots/ deploy -DskipTests |
Update online resources
If any online resources have been modified or added to during the release, these must be updated.
...
Push Release Branch to Maintenance
The release branch has changes made since code freeze. It also contains the update to the version numbers for future development.
...
Ensure that your commit history matches the release branch's commit history, except for the two additional commits.
- Changing from SNAPSHOT version to release version. Something like [maven-release-plugin] prepare release $REPO-$CURR
- Changing from release version to next development version. Something like [maven-release-plugin] prepare for next development iteration
...
If this appears correct, you can push your release branch on to the maintenance branch.
...