This document describes how RichFaces release builds are made. It consists of two parts: environment setup and build process itself.
Note for community: there's no need to follow this procedure in order to build SNAPSHOT/released version from sources.
Note: in case of problems, read Troubleshooting section
Build Environment Settings
- JDK 1.5 (SunJDK 1.5.0_22) ONLY should be used. There are back compatibility issues in 1.6 JDK that will not allow RF built using 1.6 to run under 1.5.
- Maven 2.0.9/2.0.10 2.2.1 should be used. Maven options environment variable should include:
- Necessary memory settings
- Locale settings
Example:
MAVEN_OPTS="-Xmx768m -XX:MaxPermSize=256m -Duser.language=en -Duser.country=US"
- Basic cygwin installed if under Windows (bash shell required)
- SVN executable is set up and can run in non-interactive mode
- Add to settings.xml (example settings.xml file is attached to this article - just change {temp_directory}, {jboss_username} and {jboss_password}):
User credentials:
<server>
<id>release-repository</id>
<username>nbelaevski</username>
<password>password</password>
</server>
<server>
<id>snap-repository</id>
<username>nbelaevski</username>
<password>password</password>
</server>
<server>
<id>repository.jboss.org</id>
<username>nbelaevski</username>
<password>password</password>
</server>
<server>
<id>snapshots.jboss.org</id>
<username>nbelaevski</username>
<password>password</password>
</server>
"local" profile:
<profile>
<id>local</id>
<properties>
<releaseRepository>file:/pathToLocalRepository/</releaseRepository>
<snapshotRepository>dav:https://snapshots.jboss.org/maven2/</snapshotRepository>
</properties>
</profile>
Local temporary repository:
<localRepository>~/.m2t/repository</localRepository>
Release Build Procedure
- Execute pre-tagging steps described in: Richfaces 3.3.X release testing process
- Notify everybody that branch is closed - post to design forums
- Update/checkout clean version of trunk or branch being built
- Clear local repository
- Revert changes in local copy of richfaces folder in repository.jboss.org/maven2.
- Update project version in all *.xml; *.sh; *.bat files manually. E.g. replace 3.3.1-SNAPSHOT with 3.3.1.BETA1
- Manually update version in framework\impl\src\main\java\org\richfaces\VersionBean.java. Check SVN Revision and Date in this file.
- Create SVN tag, execute (replace $1 with the actual version number, e.g. 3.3.1.BETA1):
- Execute post-tagging steps described in: Richfaces 3.3.X release testing process
- Switch to this SVN tag, execute (replace $1 with the actual version number, e.g. 3.3.1.BETA1):
- Run
- Check in distribution files:
- SVN Revision and Date in framework\impl\src\main\java\org\richfaces\VersionBean.java.
- important changes since last build. (optional)
- Share distribution files with QA Team
- QE/Dev Test and work together on issues
- Updates to tag or re-tagging may be needed depending on # of updates
- When QE/Dev ready - release
- Prep announcement - blog
- For GA version only: change version number (not in tag, in trunk or branch which was built) to the next SNAPSHOT according to 5) point, then commit changes. Send letters to everybody asking them to update environment
- Registration on the project site.
- SCP new version to download.jboss.org http://www.jboss.org/community/wiki/ProjectDownloads
- Register it on the project site:
- login to magnolia (how we will share credentials? who will be responsible except me and Jay?(vacation case or other reasons))
- Open richfaces project stable downloads page (/richfaces/download/stable.html in tree)
- Edit table of downloads(insert proper links) and save.
- Open archived releases page. Add new table with previous release to proper group.
- Open nightly builds page(/download/nightly.html), correct links to new snapshots.
- Open demos page. (richfaces/demos.html) update download links and verify demo location. (probably will be moved in future to jboss.)
- Execute binaries post-upload steps described in: Richfaces 3.3.X release testing process
- Update Jira so that version shows as "released"
- Deploy demo to livedemo.exadel.com
- For release versions only (GA/SR).
- Announce new version
- in relation Blog, twitter, forums (personal blogs (e.g. a4j jroller))
- For GA version only (jboss.org, 3rd party sites?, etc...)
- Post to design forums that development on next version in svn is open.
svn copy checkout https://svn.jboss.org/repos/richfaces/tags/$1 -m " create tag for a release $1"
svn switch https://svn.jboss.org/repos/richfaces/tags/$1
./deployRelease.sh
Monitor deployment process – pay attention that artifacts are being deployed under the right version.
Wait for deployment to complete. Check that artifacts were deployed in local copy of richfaces folder in repository.jboss.org/maven2.
Same Release QE tested is uploading to jboss.org, maven, etc... (Commit from local copy of richfaces folder in repository.jboss.org/maven2.)
For GA version only( jboss.org, 3rd party sites, etc...)
Documentation Release Build Procedure
Doc release procedure is the following.
Note: before running the build commands, make sure that the paths in the ENTITIEs (in the master.xml for userguide) are correct for all docs (cdkguide, devguide, etc.)
- Prepare a zip of release docs:
- create a folder named en;
- run the mvn clean install -Prelease,docs,release_docs -Dmaven.test.skip=true command from the docs/ directory;
- after the build is completed:
- copy the content of docs/userguide/en/target/docbook/publish/en-US/ to an en/devguide/ folder;
- copy the content of docs/cdkguide/en/target/docbook/publish/en-US/ to an en/cdkguide/ folder;
- copy the content of docs/migrationguide/en/target/docbook/publish/en-US/ to an en/migrationguide/ folder;
- copy the content of docs/photo_album_app_guide/en/target/docbook/publish/en-US/ to an en/realworld/ folder;
- edit ui/assembly/pom.xml to reflect the current release version.
- run the mvn install -Prelease command from the ui/assembly/ directory;
- after the build is completed:
- copy the content of ui/assembly/target/tlddoc/ to an en/tlddoc/ folder;
- copy the content of ui/assembly/target/apidocs/ to an en/apidoc/ folder;
- edit framework/api/pom.xml to reflect the current release version.
- run the mvn javadoc:javadoc command from the framework/api/ directory.
- after the build is completed, copy the content of framework/api/target/site/apidocs/ to the en/apidoc_framework/ folder.
- edit framework/impl/pom.xml to reflect the current release version.
- run the mvn javadoc:javadoc command from the framework/impl/ directory.
- after the build is complete, copy the content of framework/impl/target/site/apidocs/ to the en/apidoc_impl/ folder.
- create a zip archive of the en directory.
- Upload the doc bundle onto ftp://seg.rdu.redhat.com or make it accessible through anonsvn.
- Email eng-systems-mw@redhat.com with the following instructions:
- download the docs bundle;
- create a new directory at http://docs.jboss.org/richfaces/ named according to the release version;
- copy the contents of the bundle to the new directory.
- If required, they may also need to change the latest_3_3_X/ folder to point to the new upload.
- Check the docs have been uploaded to http://docs.jboss.org/richfaces/
- Discuss some ideas for 4.0 release process - specifically hudson based builds
- Targeting BETA1
- Prabhat and some ideas on hudson configs
Third Party Sites
These sites can be updated to reflect new releases if desired:
- http://en.wikipedia.org/wiki/Richfaces
- http://www.jsfmatrix.net
- http://www.theserverside.com/news/
- Old blog at http://jbossrf.blogspot.com/ should probably be shut down.
Troubleshooting
- build fails with org.ajax4jsf.tests.EnumSupportExpressionFactoryWrapper is not abstract and does not override abstract method coerceToType(java.lang.Object,java.lang.Class) in javax.el.ExpressionFactory
- LRUMapCacheThreadedTest intermitently fails
- just skip tests: -Dmaven.test.skip=true -DskipTests=true
- just skip tests: -Dmaven.test.skip=true -DskipTests=true
Comments