Home
Prerequiste:
-
Performer of the release must have push permissions on the GitHub repository
-
Performer of the release must have an account on Sonatype OSSHR and must be part of the maven-download-plugin team.
Steps for performing a release:
-
Check for backward compatibility, adapt version if necessary (try using semantic versioning)
-
Locally update README.md (replace previous version with new one, such as
1.1.0
to1.2.0
) and pom.xml (generally just remove-SNAPSHOT
to current version). -
Commit locally, create tag (such as
1.2.0
) and push to a dedicated branch. -
Run build locally
-
mvn clean install -Pits
-
mvn site
-
-
Diff branch with master, check everything looks good
-
Locally, from change: run
mvn deploy -P sonatype-oss-release
. Let the build go on, and when asked, choose a passphrase (that you should remember) -
Go to https://oss.sonatype.org/index.html#stagingRepositories , and promote the new repository (close it then release it). The new artifact should be available on Maven central some time later.
-
Push your branch and tag to master branch/repo:
git push maven-download-plugin HEAD:master 1.2.0
-
Copy new documentation site on the gh-pages branch
-
git checkout gh-pages
-
From repo root:
cp -r target/site/ docsite/1.2.0
-
git add docsite/1.2.0
-
git commit -m "Documentation for 1.2.0"
-
git push maven-download-plugin HEAD:gh-pages
-
Verify documentation is accessible: http://maven-download-plugin.github.io/maven-download-plugin/docsite/1.2.0/
-
-
Prepare for new version. By default, increase only the 3rd segment (which means only maintenance changes). When a new feature gets in, increase the 2nd segment. In case of breaking changes that are not backward compatible, first notify the mailing-list of the potential change, and increase the 1st segment. So by default, just go to the pom.xml and change for example 1.2.0 to 1.2.1-SNAPSHOT
-
Check often on Central whether the artifact has been made available, and when available…
-
Announce release. Mail to maven-download-plugin@googlegroups.com
Download maven plugin 1.2.0 is available Download maven plugin 1.2.0 is available. List of changes: https://github.com/maven-download-plugin/maven-download-plugin/compare/1.1.0...1.2.0 Thanks to Mickael Istria, Simon Dittlmann and Benoit Billington who provided patches for this release.