Building GlassFish v3 using SVN

Posted on Tuesday, October 07, 2008 by Anuj Mehta

Steps for building Glassfish v3 using SVN

• First things first!! You need internet connectivity for building it at least first time as maven will download lots of jars. Also uninstall Java 6 from your system. Java 6 won’t create any problem during building but you will get exception when you try to run glassfish server.

• Download the latest binary of SVN from Collabnet Subversion

• Download latest binary of Maven from Download Maven

• Checkout the latest copy of glassfish v3 branch
svn checkout \ glassfish-v3-branch --username JAVA_NET_USERNAME

• Increase the JVM size otherwise the build will fail with errors like OutofMemory
set maven_opts=-Xmx512m (Windows)
Incase u still get errors increase this value

• Now execute following. Here we are skipping the tests as some of the tests fail
mvn install -Dmaven.test.skip=true

• Once build is successful a zip file with following name “” will be created in ${branch-dir}\distributions\glassfish\target\

• Unzip the file and it will create dir with name ‘glassfish’. Then execute following
java –jar glassfish\modules\glassfish.jar

And finally your glassfish server is up and running. Test it on browser

0 Responses to "Building GlassFish v3 using SVN":