Skip to main content

How to build GlassFish OpenSource Edition 3.1.2.2 using sourcecode

2 replies [Last post]
zhuixunzhe_sina
Offline
Joined: 2012-09-13
Points: 0

Dear All:
I checkout the project from https://svn.java.net/svn/glassfish~svn/tags/source-build-3.1.2.2. I tried to build glassfish according its Description, I set the environment paths in config/user.properties, execute the command "ant clean.all build", but it doesnt work.

How can I successfully build GlassFish using sourcecode? Does any one knows how to do that, Please help me about that.

Thank you!

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Romain Grecourt...
Offline
Joined: 2012-02-17
Points: 0

3.1.2.2 tag:
> https://svn.java.net/svn/glassfish~svn/tags/3.1.2.2-no-delete/

You can find the build instructions at the following URL:
> https://wikis.oracle.com/display/GlassFish/FullBuildInstructions

Thanks,
Romain

Le 25/11/12 07:09, forums@java.net a écrit :
> Dear All: I checkout the project from
> https://svn.java.net/svn/glassfish~svn/tags/source-build-3.1.2.2. I
> tried to
> build glassfish according its Description, I set the environment paths in
> config/user.properties, execute the command "ant clean.all build", but it
> doesnt work. How can I successfully build GlassFish using sourcecode?
> Does
> any one knows how to do that, Please help me about that. Thank you!
>
> --
>
> [Message sent by forum member 'zhuixunzhe_sina']
>
> View Post: http://forums.java.net/node/892668
>
>

zhuixunzhe_sina
Offline
Joined: 2012-09-13
Points: 0

Thanks for your Reply:

I have successfully build source code main-4.0-b55. That is easy. but..

I used source code in https://svn.java.net/svn/glassfish~svn/tags/3.1.2.2-no-delete/ .I have tried maven version 2.2.1, 3.0.3 and 3.0.4,I set "export MAVEN_OPTS=-Xmx512m", executed command: "mvn install" and "mvn clean install" ,but I failed all the time.

I have the following error codes:

[INFO] Scanning for projects...
[WARNING] The POM for org.glassfish.build:maven-glassfishbuild-extension:jar:3.1.1 is invalid, transitive dependencies (if any) will not be
available, enable debug logging for more details
[ERROR] Invalid extension descriptor for org.glassfish.build:maven-glassfishbuild-extension:3.1.1: error in opening zip file
[WARNING] The POM for org.glassfish.build:maven-glassfishbuild-plugin:jar:3.1.1 is invalid, transitive dependencies (if any) will not be ava
ilable, enable debug logging for more details
[ERROR] Invalid extension descriptor for org.glassfish.build:maven-glassfishbuild-plugin:3.1.1: error in opening zip file
[WARNING] The POM for org.jvnet.wagon-svn:wagon-svn:jar:1.8 is invalid, transitive dependencies (if any) will not be available, enable debug
logging for more details
[ERROR] Invalid extension descriptor for org.jvnet.wagon-svn:wagon-svn:1.8: error in opening zip file
[ERROR] The build could not read 78 projects -> [Help 1]
[ERROR]
[ERROR] The project org.glassfish.main.common:mejb-frag:3.1.2.2 (F:\applicationRsource\sourceCodeV3.1.2.2-no-delete\common\mejb-frag\pom.x
ml) has 1 error
[ERROR] Unknown packaging: distribution-fragment @ line 76, column 16
[ERROR]
[ERROR] The project org.glassfish.main.deployment:dtds:3.1.2.2 (F:\applicationRsource\sourceCodeV3.1.2.2-no-delete\deployment\dtds\pom.xml
) has 1 error
[ERROR] Unknown packaging: distribution-fragment @ line 11, column 16
[ERROR]
[ERROR] The project org.glassfish.main.deployment:schemas:3.1.2.2 (F:\applicationRsource\sourceCodeV3.1.2.2-no-delete\deployment\schemas\p
om.xml) has 1 error
[ERROR] Unknown packaging: distribution-fragment @ line 11, column 16
[ERROR]
[ERROR] The project org.glassfish.main.deployment.jsr-88:sun-as-jsr88-dm-frag:3.1.2.2 (F:\applicationRsource\sourceCodeV3.1.2.2-no-delete\
deployment\jsr88-jar\sun-as-jsr88-dm-frag\pom.xml) has 1 error
[ERROR] Unknown packaging: distribution-fragment @ line 76, column 16
[ERROR]
[ERROR] The project org.glassfish.main.ejb:ejb-timer-databases:3.1.2.2 (F:\applicationRsource\sourceCodeV3.1.2.2-no-delete\ejb\ejb-timer-d
atabases\pom.xml) has 1 error
[ERROR] Unknown packaging: distribution-fragment @ line 78, column 16
[ERROR]
[ERROR] The project org.glassfish.main.connectors:descriptors:3.1.2.2 (F:\applicationRsource\sourceCodeV3.1.2.2-no-delete\connectors\descr
iptors\pom.xml) has 1 error
[ERROR] Unknown packaging: distribution-fragment @ line 53, column 16
[ERROR]
[ERROR] The project org.glassfish.main.jdbc.jdbc-ra.distribution:jdbc-ra:3.1.2.2 (F:\applicationRsource\sourceCodeV3.1.2.2-no-delete\jdbc\
jdbc-ra\jdbc-ra-distribution\pom.xml) has 1 error
[ERROR] Unknown packaging: distribution-fragment @ line 55, column 14
[ERROR]
[ERROR] The project org.glassfish.main.jdbc:templates:3.1.2.2 (F:\applicationRsource\sourceCodeV3.1.2.2-no-delete\jdbc\templates\pom.xml)
has 1 error
[ERROR] Unknown packaging: distribution-fragment @ line 54, column 16
[ERROR]
[ERROR] The project org.glassfish.main.persistence.cmp:cmp-scripts:3.1.2.2 (F:\applicationRsource\sourceCodeV3.1.2.2-no-delete\persistence
\cmp\cmp-scripts\pom.xml) has 1 error
[ERROR] Unknown packaging: distribution-fragment @ line 82, column 16
[ERROR]
[ERROR] The project org.glassfish.main.extras.upgrade:upgrade-scripts:3.1.2.2 (F:\applicationRsource\sourceCodeV3.1.2.2-no-delete\extras\u
pgrade\upgrade-scripts\pom.xml) has 1 error
[ERROR] Unknown packaging: distribution-fragment @ line 57, column 16
[ERROR]
[ERROR] The project org.glassfish.main.extras:javaee-frag:3.1.2.2 (F:\applicationRsource\sourceCodeV3.1.2.2-no-delete\extras\javaee\dist-f
rag\pom.xml) has 1 error
[ERROR] Unknown packaging: distribution-fragment @ line 55, column 16
[ERROR]
[ERROR] The project org.glassfish.main.extras:appserv-rt-frag:3.1.2.2 (F:\applicationRsource\sourceCodeV3.1.2.2-no-delete\extras\appserv-r
t\dist-frag\pom.xml) has 1 error
[ERROR] Unknown packaging: distribution-fragment @ line 55, column 16
[ERROR]
[ERROR] The project org.glassfish.main.admingui:dist-fragment:3.1.2.2 (F:\applicationRsource\sourceCodeV3.1.2.2-no-delete\admingui\dist-fr
agment\pom.xml) has 1 error
[ERROR] Unknown packaging: distribution-fragment @ line 55, column 16
[ERROR]
[ERROR] The project org.glassfish.main.extras:glassfish-embedded-shell-frag:3.1.2.2 (F:\applicationRsource\sourceCodeV3.1.2.2-no-delete\ex
tras\embedded\shell\glassfish-embedded-shell-frag\pom.xml) has 1 error
[ERROR] Unknown packaging: distribution-fragment @ line 80, column 16
[ERROR]
[ERROR] The project org.glassfish.main.extras:glassfish-embedded-static-shell-frag:3.1.2.2 (F:\applicationRsource\sourceCodeV3.1.2.2-no-de
lete\extras\embedded\shell\glassfish-embedded-static-shell-frag\pom.xml) has 1 error
[ERROR] Unknown packaging: distribution-fragment @ line 80, column 16
[ERROR]
[ERROR] The project org.glassfish.main.external:javadb:3.1.2.2 (F:\applicationRsource\sourceCodeV3.1.2.2-no-delete\packager\external\javad
b\pom.xml) has 1 error
[ERROR] Unknown packaging: distribution-fragment @ line 53, column 16
[ERROR]
[ERROR] The project org.glassfish.main.external:jmsra:3.1.2.2 (F:\applicationRsource\sourceCodeV3.1.2.2-no-delete\packager\external\jmsra\
pom.xml) has 1 error
[ERROR] Unknown packaging: distribution-fragment @ line 53, column 16
[ERROR]
[ERROR] The project org.glassfish.main.external:jaxr-ra:3.1.2.2 (F:\applicationRsource\sourceCodeV3.1.2.2-no-delete\packager\external\jaxr
_ra\pom.xml) has 1 error
[ERROR] Unknown packaging: distribution-fragment @ line 53, column 16
[ERROR]
[ERROR] The project org.glassfish.main.packager:nucleus-base:3.1.2.2 (F:\applicationRsource\sourceCodeV3.1.2.2-no-delete\packager\nucleus-
base\pom.xml) has 1 error
[ERROR] Unknown packaging: distribution-base-zip @ line 55, column 16
[ERROR]
[ERROR] The project org.glassfish.main.packager:legal-fragment:3.1.2.2 (F:\applicationRsource\sourceCodeV3.1.2.2-no-delete\packager\legal\
pom.xml) has 1 error
[ERROR] Unknown packaging: distribution-base-zip @ line 55, column 16
[ERROR]
[ERROR] The project org.glassfish.main.packager:felix:3.1.2.2 (F:\applicationRsource\sourceCodeV3.1.2.2-no-delete\packager\felix\pom.xml)
has 1 error
[ERROR] Unknown packaging: distribution-base-zip @ line 54, column 16
[ERROR]
[ERROR] The project org.glassfish.main.packager:glassfish-hk2:3.1.2.2 (F:\applicationRsource\sourceCodeV3.1.2.2-no-delete\packager\glassfi
sh-hk2\pom.xml) has 1 error
[ERROR] Unknown packaging: distribution-base-zip @ line 54, column 16
[ERROR]
[ERROR] The project org.glassfish.main.packager:glassfish-grizzly:3.1.2.2 (F:\applicationRsource\sourceCodeV3.1.2.2-no-delete\packager\gla
ssfish-grizzly\pom.xml) has 1 error
[ERROR] Unknown packaging: distribution-base-zip @ line 54, column 16
[ERROR]
[ERROR] The project org.glassfish.main.packager:glassfish-nucleus:3.1.2.2 (F:\applicationRsource\sourceCodeV3.1.2.2-no-delete\packager\gla
ssfish-nucleus\pom.xml) has 1 error
[ERROR] Unknown packaging: distribution-base-zip @ line 54, column 16
[ERROR]
[ERROR] The project org.glassfish.main.packager:glassfish-grizzly-full:3.1.2.2 (F:\applicationRsource\sourceCodeV3.1.2.2-no-delete\package
r\glassfish-grizzly-full\pom.xml) has 1 error
[ERROR] Unknown packaging: distribution-base-zip @ line 54, column 16
[ERROR]
[ERROR] The project org.glassfish.main.packager:glassfish-corba-base:3.1.2.2 (F:\applicationRsource\sourceCodeV3.1.2.2-no-delete\packager\
glassfish-corba-base\pom.xml) has 1 error
[ERROR] Unknown packaging: distribution-base-zip @ line 54, column 16
[ERROR]
[ERROR] The project org.glassfish.main.packager:glassfish-common-tmp:3.1.2.2 (F:\applicationRsource\sourceCodeV3.1.2.2-no-delete\packager\
glassfish-common-tmp\pom.xml) has 1 error
[ERROR] Unknown packaging: distribution-base-zip @ line 54, column 16
[ERROR]
[ERROR] The project org.glassfish.main.packager:shoal:3.1.2.2 (F:\applicationRsource\sourceCodeV3.1.2.2-no-delete\packager\shoal\pom.xml)
has 1 error
[ERROR] Unknown packaging: distribution-base-zip @ line 54, column 16
[ERROR]
[ERROR] The project org.glassfish.main.packager:glassfish-cluster:3.1.2.2 (F:\applicationRsource\sourceCodeV3.1.2.2-no-delete\packager\gla
ssfish-cluster\pom.xml) has 1 error
[ERROR] Unknown packaging: distribution-base-zip @ line 54, column 16
[ERROR]
[ERROR] The project org.glassfish.main.packager:glassfish-ha:3.1.2.2 (F:\applicationRsource\sourceCodeV3.1.2.2-no-delete\packager\glassfis
h-ha\pom.xml) has 1 error
[ERROR] Unknown packaging: distribution-base-zip @ line 54, column 16
......

Do I have to fix every pom.xml? That's Crazy..

I want to konw how to resolve this problem.