users@glassfish.java.net

Re: How to build 3.1.2.2 from sources

From: Pawel Veselov <pawel.veselov_at_gmail.com>
Date: Fri, 1 Nov 2013 19:15:19 -0700

On Fri, Nov 1, 2013 at 4:00 PM, Qqqqqq <byron.nevins_at_oracle.com> 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]
------------------------------------------------------------------------
Downloading:
http://repo1.maven.org/maven2/org/eclipse/persistence/javax.persistence/2.0.4.v201112200901/javax.persistence-2.0.4.v201112200901.pom
[INFO] Unable to find resource
'org.eclipse.persistence:javax.persistence:pom:2.0.4.v201112200901' in
repository central (http://repo1.maven.org/maven2)
Downloading:
http://repo1.maven.org/maven2/org/eclipse/persistence/javax.persistence/2.0.4.v201112200901/javax.persistence-2.0.4.v201112200901.jar
[INFO] Unable to find resource
'org.eclipse.persistence:javax.persistence:jar:2.0.4.v201112200901' in
repository central (http://repo1.maven.org/maven2)
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Failed to resolve artifact.

Missing:
----------
1) org.eclipse.persistence:javax.persistence:jar:2.0.4.v201112200901

  Try downloading the file manually from the project website.

  Then, install it using the command:
      mvn install:install-file -DgroupId=org.eclipse.persistence
-DartifactId=javax.persistence -Dversion=2.0.4.v201112200901
-Dpackaging=jar -Dfile=/path/to/file

  Alternatively, if you host your own repository you can deploy the file
there:
      mvn deploy:deploy-file -DgroupId=org.eclipse.persistence
-DartifactId=javax.persistence -Dversion=2.0.4.v201112200901
-Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

  Path to dependency:
  1) org.glassfish.main.deployment:dol:hk2-jar:3.1.2.2
  2) org.eclipse.persistence:javax.persistence:jar:2.0.4.v201112200901

----------
1 required artifact is missing.

for artifact:
  org.glassfish.main.deployment:dol:hk2-jar:3.1.2.2

from the specified remote repositories:
  central (http://repo1.maven.org/maven2),
  jvnet-nexus-snapshots (
https://maven.java.net/content/repositories/snapshots)



>
>
> Sent from my iPhone
>
> On Nov 1, 2013, at 2:43 PM, Pawel Veselov <pawel.veselov_at_gmail.com> 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.
>
>
>


-- 
With best of best regards
Pawel S. Veselov