This document is intended for committers who are packaging a release. It likely won't be
of much use to anyone else.
If this is the first time you're doing a release you'll need to perform
some setup.
-
Configure your SourceForge username in ~/.m2/settings.xml (see Security and Deployment Settings).
As an example, my settings.xml looks like:
<settings>
...
<servers>
<server>
<id>htmlunit-website</id>
<username>mguillem,htmlunit</username>
<!-- optional element:
<password>my_login_password</password>
-->
</server>
<server>
<id>htmlunit-m2-repo</id>
<username>mguillem,htmlunit</username>
<!-- optional element:
<password>my_login_password</password>
-->
</server>
<server>
<id>htmlunit-m2-repo-snapshots</id>
<username>mguillem,htmlunit</username>
<!-- optional element:
<password>my_login_password</password>
-->
</server>
</servers>
...
</settings>
Now do this for each release:
-
Update the version number in pom.xml
-
Update the version number and release date in src/site/xdoc/index.xml
-
Update the version number and release date in src/changes/changes.xml
-
Remove pom.xml reference to any snapshot repository (needed for Maven upload request).
-
Increase Java heap space by setting the environment variable
MAVEN_OPTS="-Xms256m -Xmx512m"
Then build the zip files
mvn -up clean site package
-
Upload the two zip files to
SourceForge
-
Add a new Group in SourceForge tracker system.
-
Make sure everything is checked
in and tag the repository (to https://htmlunit.svn.sourceforge.net/svnroot/htmlunit/tags/)
with a name like this "HtmlUnit-2.0" that reflects the current build version.
-
Ensure HtmlUnit-related dependencies are 'tagged' in the repository.
- Deploy the release to HtmlUnit Maven repository (which is synchronized with the main repository),
skipping the tests to save time as they have already been run previously
mvn -Dmaven.test.skip=true deploy
-
Delete online website javadoc.
-
Create a shell to shell.sourceforge.net with your username and project group
(see Maven site plugin for details).
ssh -t mguillem,htmlunit@shell.sf.net create
-
Deploy the site documentation (skipping the tests again).
mvn -Dmaven.test.skip=true site:deploy
-
Add pom.xml reference to previously removed snapshot repository.