1. Create a branch for the new version:
svn cp https://svn.java.net/svn/javaeetutorial~svn/trunk https://svn.java.net/svn/javaeetutorial~svn/branches/javaeetutorial-version number -m "Branching from trunk to the version number branch."
2. Check out the new branch:
svn co https://svn.java.net/svn/javaeetutorial~svn/branches/javaeetutorial-version number
3. Update the version numbers in bundle/build.properties:
pkg.version.major=7 pkg.version.minor=0 pkg.version.release=2 pkg.version.build.major=1 # increment pkg.version.build.minor by 1 when updating current version pkg.version.build.minor=1
4. In bundle/build.properties change the svn.root to use the branch, not the root:
1. Run the Maven Versions Plugin from the example root to update the version from version-SNAPSHOT to version.
cd examples mvn versions:set -DnewVersion=version number
2. Ensure the example tree builds by entering:
Note: you must perform this task in a Unix environment (Linux, Solaris, OS X), not Windows. The reason is that the IPS packaging tools refer to files with Windows paths as literal file names in Unix. For example, the file that should be in
docs/javaee-tutorial/doc/home.htm will actually be installed as
docs/javaee-tutorial/doc\home.htm--that is, there will be a file called
doc\home.htm located in
1. Run the packaging Ant scripts.
cd bundle ant package
2. Test the package from the Update Center, configured to point to the internal IPS repository. 3. If the examples and documentation in the package are correct, inform release engineering of the updated package name and number. Release engineering will move the package from the internal IPS repository to the external IPS repository.
1. Go to the example tree in the trunk.
2. Update the version number in trunk to the new SNAPSHOT version.
mvn versions:set -DnewVersion=version number-SNAPSHOT
3. Commit the version change.
4. Commit the modified pom.xml files to trunk.
svn commit -m "Updated version to version number-SNAPSHOT"