GlassFish on FreeBSD
Two month ago I build Glassfish v.2 on my FreeBSD 7.1/i386 . It still works. And no failures.
So here is my expierence. It was based on this articles Building GlassFish on FreeBSD and Compile Glassfish on FreeBSD (JDK 1.5) (which are primary the same) and some others.
First of all:
1) Don’t try to build it using maven2 . Just use maven (/usr/ports/devel/maven)
2) It ‘s important to specify which BRANCH to checkout cause if you don’t you ‘ll get the newest sources that won’t be compiled. To Checkout sources of Glassfish v2 use:
$cvs -d :pserver:YOUR_ACCOUNT_LOGIN@cvs.dev.java.net:/cvs co -r SJSAS91_UR2_BRANCH glassfish/bootstrap
3) Don’t try to build it using jdk1.6 cause you get build errors on step 4 ‘Build the checked out source code. ‘
That’s all. Step by step tutorial you find in Building GlassFish on FreeBSD just remember my remarks.
thanks. u save my time