Towards Building NetBeans From A New Home
The folks at Oregon State University Open Source Lab have been so kind as to provide us hosting for the binary dependencies.
Since forever NetBeans sources and dependencies have been available on the netbeans.org server. (Particularly hg.netbeans.org because some wise Sun folks picked the great Mercurial version control system).
I’ve first started work in 2011 towards removing this single point of failure. Having a backup for the Sun (and later Oracle) infrastructure seemed healthy for an open-source project. The first step was having the Mercurial clones on https://bitbucket.org/netbeans/
But now that NetBeans is moving to Apache this whole infrastructure must change.
First, we are migrating to Git!
Of course, once the code donation is finished the Git repository will be under https://github.com/apache
So, how do you build a NetBeans with these new coordinates? Easy!
First, make a git clone or zip download from the GitHub repository https://github.com/emilianbold/netbeans-releases
Then, edit nbbuild/default-properties.xml and replace the binaries.server property to be like this:
<property name="binaries.server" value="http://netbeans.osuosl.org/binaries/"/>
Then, do a simple ant build.
You should see in the terminal ant downloading the dependencies from the new OSUOSL server:
[downloadbinaries] Creating /Users/apache/work/NEXTbeans/build-emibeans/apisupport.harness/external/jsearch-2.0_05.jar [downloadbinaries] Downloading: http://netbeans.osuosl.org/binaries/D4EF66C1CC8A5B3C97E0CC7C210227AAEC1F1086-jsearch-2.0_05.jar
That’s it! A clean NetBeans build using only GitHub and OSUOSL.