Wednesday May 07, 2014

How to Build GlassFish 4 from Source

Markus Eisele's View of GlassFish Source

Markus Eisele's GlassFish City Revisited

So you want to build the Reference Implementation of Java EE 7 from the source code after tweaking a little bit? Guess what, it is not hard at all. Andrew Pielage from C2B2 provided us with a nice blog post about the steps required to build GlassFish Open Source Edition from the source. Below you find just a few hints of how easy it is to build GlassFish, but don't forget to check Andrew's post for more details on how to modify source code, build with better options, load the custom build on NetBeans, and more!

1 2 3 4 5 6 7
#!/bin.sh
MAVEN_OPTS=-Xmx1024M -XX:MaxPermSize=512m
svn checkout https://svn.java.net/svn/glassfish~svn/trunk/main
cd main
mvn install -Dmaven.wagon.http.ssl.insecure=true \
-Dmaven.wagon.http.ssl.allowall=true \
-DskipTests
view raw build-glassfish.sh hosted with ❤ by GitHub

Do you have a nice article about GlassFish or Java EE?
Share it with us by mentioning @glassfish on Twitter!