X

An Oracle blog about Java Technology

How to Build GlassFish 4 from Source

Bruno Borges
Principal Product Manager, Developer Engagement

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!

Join the discussion

Comments ( 2 )
  • Anastasios Monday, May 19, 2014

    Given that it is more than one option in the second line and the whitespace between them, shouldn't they be enclosed in quotation marks?


  • wqnich srat Tuesday, May 20, 2014

    you is the best of technology of world.thank you very much.(p.s.i don't know?now,what's my doing?please,tell me.)


Please enter your name.Please provide a valid email address.Please enter a comment.CAPTCHA challenge response provided was incorrect. Please try again.Captcha
Oracle

Integrated Cloud Applications & Platform Services