Sunday Sep 18, 2011

How to checkout and build GlassFish trunk ? (TOTD #171)

The complete instructions to check out and build GlassFish trunk are explained here. But if you want just quick instructions then follow the steps below:

svn checkout https://svn.java.net/svn/glassfish~svn/trunk/main glassfish
cd glassfish
mvn

Make sure you are using JDK 1.6 U4+ (not JDK 7 yet) and Maven 2.2.1 (not 3.0 yet).

UPDATE: Builds fine with JDK 7 and Maven 3.0.3 after this commit. Follow GLASSFISH-17285 for more on building with JDK 7.

The default target builds the entire workspace and runs the tests. You can skip the tests by additionally specifying

-Dmaven.test.skip=true
on the CLI.

A CI build of GlassFish trunk is always available at hudson.glassfish.org.

A fresh check of the workspace took about 19 minutes on my laptop and a build took about: 14 minutes. The final successful message was:

-------------------------------------------
BUILD SUCCESSFUL
-------------------------------------------
Total time: 14 minutes 23 seconds
Finished at: Fri Sep 16 13:54:49 PDT 2011
Final Memory: 189M/459M
-------------------------------------------

How often do you build GlassFish ?

How much time does it take on your laptop ?

About

profile image
Arun Gupta is a technology enthusiast, a passionate runner, author, and a community guy who works for Oracle Corp.


Java EE 7 Samples

Stay Connected

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today