Thursday Aug 29, 2013

How to Set Up GlassFish Sources in NetBeans IDE

Here's where I find the GlassFish sources:

https://svn.java.net/svn/glassfish~svn

Let's set up the 4.0 branch of the above sources in NetBeans IDE. In the Team menu, use the Subversion tool to point to the above URL:

Click Next and then pick the 4.0 branch:

While the check out is taking place, add the folder where you're doing the check out to the Favorites window (Ctrl-3), which you can do by right-clicking in the Favorites window and choosing "Add to Favorites"...

...while also opening the Output window (Ctrl-4)...

Via the above two tools, you can monitor the check out as it happens. You'll see how far along things are.

When the check out is complete, right-click the root node, which is "4.0" above, in the Favorites window, and select "Open Project of Folder". The IDE opens the Maven project in the Projects window as a new NetBeans project, since the IDE knows how to interpret the Maven POM file:

Then right-click the project node and choose "Build with Dependencies".

Now another process starts up, pretty lengthy which makes sense considering how large GlassFish is, which can again be monitored in the Output window:

Finally, when everything is compiled, and half the internet is downloaded, you're ready to work on the GlassFish sources:

Note: The list of Maven projects comprising the GlassFish sources goes on quite a bit further beyond what's shown in the screenshot above.

About

Geertjan Wielenga (@geertjanw) is a Principal Product Manager in the Oracle Developer Tools group living & working in Amsterdam. He is a Java technology enthusiast, evangelist, trainer, speaker, and writer. He blogs here daily.

The focus of this blog is mostly on NetBeans (a development tool primarily for Java programmers), with an occasional reference to NetBeans, and sometimes diverging to topics relating to NetBeans. And then there are days when NetBeans is mentioned, just for a change.

Search

Archives
« August 2013 »
SunMonTueWedThuFriSat
    
1
24
       
Today