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 ?

Comments:

This was the 1st time I built Glassfish on my iMac.
(3.06 Ghz Intel Dual Core, 8GB RAM)

[INFO] BUILD SUCCESSFUL
[INFO] -----------------------------------------
[INFO] Total time: 20 minutes 41 seconds
[INFO] Finished at: Sat Sep 24 17:21:07 CDT 2011
[INFO] Final Memory: 279M/507M
[INFO] -----------------------------------------

JDK: 1.6.0_25
Maven: 2.2.1

Thanks for posting the easy instructions!

Posted by Jeff Edlund on September 24, 2011 at 04:25 PM PDT #

Cool, glad you find the short version useful!

Posted by Arun on September 24, 2011 at 04:29 PM PDT #

Hi! I tried to follow instructions from this site and from those:
http://java.net/projects/vmware-plugin/pages/Home
https://wikis.oracle.com/display/GlassFish/FullBuildInstructions

but I am unable to achieve a distribution with asadmin script that would recognise commands like create-ims-config-native etc...

Here's what I do:
1. svn update main (update glassfish to it's newest revision)
2. mvn install -Dmaven.test.skip=true
3. extract glassfish from main/appserver/distributions/glassfish/target/glassfish.zip
4. go to <extracted glassfish>/bin/
5. execute asadmin start-domain
6. execute asadmin create-ims-config-native

and 6 step returns:
CLI001 Invalid Command, create-ims-config-native. Use "asadmin help" for a list of valid commands.

What do I do wrong?

Posted by Carek on February 11, 2012 at 02:02 PM PST #

Carek,

The recent builds have changed and the command may have to be updated.

Can you please follow up your question on users@glassfish.java.net ?

Posted by guest on February 11, 2012 at 02:25 PM PST #

sure. Sent it already to this address. No response so far.
Shall I expect answer on my email or at some other, specific place?

Posted by Carek on February 12, 2012 at 05:16 AM PST #

Post a Comment:
Comments are closed for this entry.
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
« July 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
31
  
       
Today