The Source for Java Technology Collaboration


Update Center Build QuickStart

Prerequisites

  • The users must have Maven (1.0.2) installed: This will create the local repository needed by Maven to store Update Center dependencies.
  • The user must have a login on java.net and must have access to the CVS repository for the Update Center project.
  • The user must login to the Update Center CVS repository once (so CVS saves the password in the .cvspass file in the user's home directory)
  • J2SE? 5.0 (1.5.0_09) must be installed, configured as JAVA_HOME env variable and in your binary path.
  • Setup CVS client per java.net instructions.

Quick Usage Example

  • % cvs -d :pserver:dpatil@asengsol1.sfbay.sun.com:/cvs login
  • % cvs -d :pserver:dpatil@asengsol1.sfbay.sun.com:/cvs co updatecenter/bootstrap
  • % maven checkout bootstrap-all build
  • % maven setup (or maven package- to package the binaries)
  • % maven clean

QuickStart

Assuming you have Apache Maven 1.0.2 and JDK 5.0 (1.5.0_09) installed and configured as specified in the prerequisites above.

1. Checkout updatecenter/bootstrap module: This is the top-level build module consisting of building all or subset of the modules.

  • % mkdir workspace
  • % cd workspace
  • % cvs -d :pserver:{java.net.id}@cvs.dev.java.net:/cvs checkout updatecenter/bootstrap (From SWAN, try :pserver:{java.net id}@asengsol1.sfbay.sun.com:/cvs)

2. Configure Build Variables: Create workspace/updatecenter/bootstrap/build.properties or for re-usable Update Center workspace, one-time process is to create${HOME}/build.properties (Unix) or %HOMEPATH%\build.properties (Windows) and set following variables.

  • uc.cvs.username={java.net id}
  • uc.os.name={OS Name: Possible values - WINNT, SunOS, Linux, SunOS_X86, Darwin}
  • uc.cvsroot=:pserver:{java.net id}@cvs.dev.java.net:/cvs
  • uc.home=${HOME}/uc/install
  • uc.root=${HOME}/uc/src

3. Checkout the sources:

  • % cd updatecenter/bootstrap
  • % maven checkout

4. Build the sources:

  • % maven bootstrap-all build

5. Package the bits:

  • % maven package

6. Setup the Update Center:

  • % maven setup

7. Set Application Server Home in config.xml:

  • GlassFish now comes with Update Center. You may also change %appserver_home% to point to your GlassFish install root. For example, c:\sun\glassfish.

Topic UpdateCenterBuildInstructions . { Edit | Ref-By | Printable | Diffs r6 < r5 < r4 < r3 < r2 | More }
 XML java.net RSS

Revision r6 - 24 Jan 2007 - 22:46:46 - Main.ai109478
Parents: WebHome > Updatecenter