Skip to main content

How to build 3.1.2.2 from sources

Please note these java.net forums are being decommissioned and use the new and improved forums at https://community.oracle.com/community/java.
6 replies [Last post]
vps
Offline
Joined: 2006-09-07

Hi.

I'd like to try building GlassFish 3.1.2.2 (as available right now on
https://glassfish.java.net/download-archive.html) from source repository. I
have a few basic questions at this point:

1. Which branch/tag from the repository do I need to check out, and whether
it's at HEAD or some other revision?

2. Is there a source bundle available for a release, outside of the
repository?

3. Is it possible to determine the branch/tag/revision of where the code
has been built from, from the built binaries?

Thank you,
Pawel.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
bnevins
Offline
Joined: 2005-03-28

I'm not at my computer right now. I'm not 100% sure of the tag, not branch,
Something like

Tags/3.1.2.2-nodelete

You have to build with Jdk 6 not 7
You need maven 2 not 3

Sent from my iPhone

> On Nov 1, 2013, at 2:43 PM, Pawel Veselov wrote:
>
> Hi.
>
> I'd like to try building GlassFish 3.1.2.2 (as available right now on https://glassfish.java.net/download-archive.html) from source repository. I have a few basic questions at this point:
>
> 1. Which branch/tag from the repository do I need to check out, and whether it's at HEAD or some other revision?
>
> 2. Is there a source bundle available for a release, outside of the repository?
>
> 3. Is it possible to determine the branch/tag/revision of where the code has been built from, from the built binaries?
>
> Thank you,
> Pawel.
>
>

vps
Offline
Joined: 2006-09-07

On Fri, Nov 1, 2013 at 4:00 PM, Qqqqqq wrote:

> I'm not at my computer right now. I'm not 100% sure of the tag, not branch,
> Something like
>
> Tags/3.1.2.2-nodelete
>
> You have to build with Jdk 6 not 7
> You need maven 2 not 3
>

Thank you.

I tried, and I quickly run into problems of missing artifacts (I quoted
maven output below).
Is there a repository of packages that are needed for building a particular
version? This is why I asked about the source bundle, since these
dependencies change too often, and don't always offer archived versions...

[INFO] Building Deployment Object Library
[INFO] task-segment: [package]
[INFO]

Romain Grecourt...
Offline
Joined: 2012-02-17

Le 02/11/13 03:15, Pawel Veselov a écrit :
> On Fri, Nov 1, 2013 at 4:00 PM, Qqqqqq > wrote:
>
> I'm not at my computer right now. I'm not 100% sure of the tag,
> not branch,
> Something like
>
> Tags/3.1.2.2-nodelete
>
> You have to build with Jdk 6 not 7
> You need maven 2 not 3
>
>
> Thank you.
>
> I tried, and I quickly run into problems of missing artifacts (I
> quoted maven output below).
> Is there a repository of packages that are needed for building a
> particular version? This is why I asked about the source bundle, since
> these dependencies change too often, and don't always offer archived
> versions...
>
> [INFO] Building Deployment Object Library
> [INFO] task-segment: [package]
> [INFO]

vps
Offline
Joined: 2006-09-07

Hi Romain,

On Sat, Nov 2, 2013 at 6:28 AM, Romain Grécourt
wrote:

> Le 02/11/13 03:15, Pawel Veselov a écrit :
>
> On Fri, Nov 1, 2013 at 4:00 PM, Qqqqqq wrote:
>
>> I'm not at my computer right now. I'm not 100% sure of the tag, not
>> branch,
>> Something like
>>
>> Tags/3.1.2.2-nodelete
>>
>> You have to build with Jdk 6 not 7
>> You need maven 2 not 3
>>
>
> Thank you.
>
> I tried, and I quickly run into problems of missing artifacts (I quoted
> maven output below).
> Is there a repository of packages that are needed for building a
> particular version? This is why I asked about the source bundle, since
> these dependencies change too often, and don't always offer archived
> versions...
>
> [INFO] Building Deployment Object Library
> [INFO] task-segment: [package]
> [INFO]

vps
Offline
Joined: 2006-09-07

And one more question -- how do I build the installer binaries? Like these
.sh or .exe that are available for download?

On Tue, Nov 5, 2013 at 4:15 PM, Pawel Veselov wrote:

>
> Hi Romain,
>
> On Sat, Nov 2, 2013 at 6:28 AM, Romain Grécourt <
> > wrote:
>
>> Le 02/11/13 03:15, Pawel Veselov a écrit :
>>
>> [skipped]

> .
>>
>> Eclipselink artifacts are located in the eclipse.org repository.
>> If using mirroring, you have to exclude it as documented here:
>> https://wikis.oracle.com/display/GlassFish/FullBuildInstructions
>>
>>
> That document pointer is really something I needed, thank you.
>
> What was missing is registering the proper repository profiles, and using
> that profile during build, that's written out at the bottom of that
> instructions page. Using the profile will make Maven use correct repository
> URLs, and the build finished up fine.
>
> Thank you,
> Pawel.
>
> [skipped]
>
>

Romain Grecourt...
Offline
Joined: 2012-02-17

On 11/6/13 2:04 AM, Pawel Veselov wrote:
>
> And one more question -- how do I build the installer binaries? Like
> these .sh or .exe that are available for download?
This involve building GlassFish IPS images (Image Packaging System, see
updatecenter2.java.net). There is no documentation I could point you at.
However, you could tweak installer/build.xml file in to fit your own
glassfish.zip (not the IPS images).

Thanks,
Romain
>
> On Tue, Nov 5, 2013 at 4:15 PM, Pawel Veselov > wrote:
>
>
> Hi Romain,
>
> On Sat, Nov 2, 2013 at 6:28 AM, Romain Grécourt
> >
> wrote:
>
> Le 02/11/13 03:15, Pawel Veselov a écrit :
>
> [skipped]
>
>> .
> Eclipselink artifacts are located in the eclipse.org
> repository.
> If using mirroring, you have to exclude it as documented here:
> https://wikis.oracle.com/display/GlassFish/FullBuildInstructions
>
>
> That document pointer is really something I needed, thank you.
>
> What was missing is registering the proper repository profiles,
> and using that profile during build, that's written out at the
> bottom of that instructions page. Using the profile will make
> Maven use correct repository URLs, and the build finished up fine.
>
> Thank you,
> Pawel.
>
> [skipped]
>
>