GlassFish Full Build Instructions

These instructions are for those who want to fully build everything from scratch. Most developers should follow DevelopmentInstructions. To build GlassFish V2, see here .

Maven version

  • trunk -> maven 3.0.3 or above
  • 3.X -> maven 2.2.1 only

Maven options

MAVEN_OPTS environment variable must include the following:

-Xmx1024M -XX:MaxPermSize=512m

Not using the above setting will likely cause an OutOfMemoryException.

JDK version

  • trunk -> JDK 1.7 Update Release 9
  • 3.x -> JDK 1.6 Update Release 4 or above, JDK 1.7 is not supported

Settings.xml (only required for building 3.x)

You need to have the following mirror element in <user.home>/.m2/settings.xml so that all Maven artifacts are downloaded from Maven Central except for EclipseLink artifacts.  

 <mirrors>
    <mirror>
      <id>maven-central</id>
      <url>http://repo1.maven.org/maven2/</url>
      <mirrorOf>*,!eclipselink.repository,!jvnet-nexus-promoted</mirrorOf>
    </mirror>
  </mirrors>

Checkout the workspace

To checkout the entire trunk workspace,

svn checkout https://svn.java.net/svn/glassfish~svn/trunk/main

If you don't have svn, please download it here.

To checkout the 3.1.2 workspace,

svn checkout https://svn.java.net/svn/glassfish~svn/tags/3.1.2

To checkout the 3.1.1 workspace,

svn checkout https://svn.java.net/svn/glassfish~svn/tags/3.1.1

To checkout the 3.1 workspace,

svn checkout https://svn.java.net/svn/glassfish~svn/tags/3.1

To checkout the 3.0.1 FCS workspace,

svn checkout https://svn.java.net/svn/glassfish~svn/tags/3.0.1

To checkout the 3.0 FCS workspace,

svn checkout https://svn.java.net/svn/glassfish~svn/tags/3.0

To checkout the V3Preview workspace,

svn checkout https://svn.java.net/svn/glassfish~svn/branches/3.0-Preview

To checkout the V3Prelude workspace,

svn checkout https://svn.java.net/svn/glassfish~svn/branches/v3_prelude_release

Tip: If you don't have svn installed, you can use mvn to checkout trunk workspace:

mvn scm:checkout -DconnectionUrl=scm:svn:https://svn.java.net/svn/glassfish~svn/trunk/main -DcheckoutDirectory=main

This command will create a subdirectory 'main' from the directory where you run the command. You can do the same for V3Prelude workspace by replacing the URL.
After that, perform the following steps to build GFv3

cd main
mvn install

Note: if you get a java OutOfMemory Error while running the mvn command, add this entry to your shell's rc file or environment:

export MAVEN_OPTS=-Xmx512m

Tip: If you want to dedicate a maven local repository:

mvn -Dmaven.repo.local=/tmp/m2 clean install

Re-build from existing workspace,

cd main
svn update
mvn install

You can use the "-U" option if you want maven to check and download the updated SNAPSHOT and release artifacts. However, build will take much longer using this option. If you have one successful build which means your local Maven repository (by default it's <user-home>/.m2/repository) is populated with the artifacts referenced in GlassFish v3 workspace, then you don't need to use "-U".

You can use the "clean" target if you want maven to delete the modules' target directories and force maven to build all the modules. Without the clean target, maven will build the modules that have been modified.

NOTE if your code change impacts other modules, it is recommended that you do a "clean".

Also, once you have a successful build, you can build selected modules in the v3 directory by using the "-pl or --projects" option.

e.g.

mvn  -Dmaven.repo.local=/export/GlassFish/Apr20/repository -pl admin,common install

If you already have a GlassFish installation and would like to update that jar files built in your workspace to the installed glassfish/modules directory, you can either directly copy to the glassfish/modules directory or create a symlink in Unix/Linux or use Junction in Windows OS (see here.

Currently the Maven GlassFish Build plugin's "run" goal (described here) is broken due to changes in the GlassFish launcher code. Once this is fixed, you can also use this option to start domain with the artifacts built in your workspace.

Distributions

At the end of this, you will have various distributions. These distributions are nothing but zip files with specific Main Class and contents. For example, one of the distributions is the GlassFish distribution available at: main/appserver/distributions/glassfish/target, named glassfish.zip.

Note that the so-called "admin domain" is already available as a zipped-up folder with prebuilt structure. This is a deviation from how GlassFish V2 used to install/create the domain.

Running V3

Unzip the distribution in your favorite directory and do

glassfish/bin/asadmin start-domain [--verbose|-v]

where the option --verbose|-v starts the server embedded, in the same vm and displays the server log on the console
or

java -jar glassfish/modules/glassfish.jar

you can then use the asadmin client to deploy applications

bin/asadmin deploy foo.war

Note: Make sure that you are using JDK 1.6 update release 4 or above and it must be in the path.

Building Offline

You can build offline if you have all the external dependencies downloaded in the local Maven repository. The dependencies are downloaded if you have a previously successful v3 build. To build offline, use the following command:

mvn -DskipTests=true  -o clean install
You need to add -DskipTests=true to skip the unit tests since the acc-config unit test is retrieving the DTD over the network when using JAXB to convert XML files to Java code. See: IT 4756

Kenai Migration

If you have an existing workspace from java.net (Collab) and would like to switch to the new java.net (Kenai) infrastructure, please use switch --relocate command.

$ cd work/ws/main
$ svn switch --relocate https://svn.java.net/svn/glassfish-svn https://svn.java.net/svn/glassfish~svn
Error validating server certificate for 'https://svn.java.net:443':
 - The certificate is not issued by a trusted authority. Use the
   fingerprint to validate the certificate manually!
Certificate information:
 - Hostname: www.java.net
 - Valid: from Mon, 20 Sep 2010 08:00:00 GMT until Thu, 20 Sep 2012 07:59:59 GMT
 - Issuer: Class 3 MPKI Secure Server CA, VeriSign Trust Network, Sun Microsystems Inc
 - Fingerprint: 22:d2:d5:43:96:0f:eb:e0:9a:20:b9:14:b4:d9:32:1e:6a:f3:37:11
(R)eject, accept (t)emporarily or accept (p)ermanently? p
$ svn update
Updated to revision 43064.

Building Embedded

You must first build main workspace and have a local Maven repository containing the main/appserver and main/nucleus artifacts. The embedded workspace will need to reference the same local Maven repository used for building main. If you're not using the default Maven repository, (<home>/.m2/repository), you can set the local Maven repository with the property -Dmaven.repo.local=... on the command line. If you just want to build embedded without building v3, the v3 SNAPSHOT artifacts from the remote Maven repository will be used to assemble the embedded artifacts.

Embedded All

cd main/appserver/extras/embedded/all
mvn install

Embedded Nucleus

cd main/appserver/extras/embedded/nucleus
mvn install

Embedded Web

cd main/appserver/extras/embedded/web
mvn install

Decision Regarding Binary Class Version of GlassFish Build.

This was discussed during the engineering meeting on Tuesday 17 Feb 2009.

Since by definition, Java EE 6 requires Java SE 6 runtime, it is obvious that we use Java 6 for compilation. Thus, the javac used for compilation of Java sources in GlassFish v3 trunk is <java6>/bin/javac (or its equivalent). Now, the target for such a build is Java 6 runtime. Thus, by default, i.e. if we don't specify the -target option on javac, the generated classes would have a Major Version of 50.0 (which corresponds to Java 6). Thus, if we did that, all the modules will only create classes that can be loaded by Java 6 runtime. In order to support Java 5 runtime (ListOfV3ModulesSupportingJava5Runtime) which might be required by some of the components (although their source are checked in to v3 trunk), here is the decision taken:

  1. GlassFish v3 must be run with Java 6+ runtime only. (Can someone clarify if it applies to all the distro's?)
  2. We use javac from Java 6 for compilation. Because of that, any module can declare compile-time dependencies on Java 6 classes, e.g. java.io.Console.
  3. We use -target as 1.5 which means, by default, the major version of classes generated by build would be 49. This is to take care of running certain modules with Java 5 runtime.
  4. asadmin will detect an attempt to run GlassFish with Java 5 Runtime See: 7038 and will flag it as an error.

Unable to build because maven.glassfish.org is offline

The GlassFish Nexus Server (maven.glassfish.org) is offline due to internal infrastructure changes.
This of course impacts GlassFish builds.  Since almost all GlassFish dependencies are available in Maven Central, except for EclipseLink artifacts, you'll need to create a mirror element in settings.xml:

< !-- mirror all repositories to central except for EclipseLink  repository -->
<mirror>
<id>maven-central</id>
<url>http://repo1.maven.org/maven2/</url>
<mirrorOf>*,!eclipselink.repository</mirrorOf>
</mirror>

For 3.x, you'll need to add the following profile in settings.xml:

<profile>
    <id>gf-repo</id>
    <repositories>
        <repository>
            <id>eclipselink.repository</id>
            <name>EclipseLink Repo</name>
            <releases>
                <enabled>true</enabled>
            </releases>
            <snapshots>
                <enabled>false</enabled>
            </snapshots>
            <url>http://download.eclipse.org/rt/eclipselink/maven.repo/</url>
            <layout>default</layout>
        </repository>
        <repository>
            <id>netbeans.repository</id>
            <name>Maven Repo containing NetBeans artifacts</name>
            <releases>
                <enabled>true</enabled>
            </releases>
            <snapshots>
                <enabled>false</enabled>
            </snapshots>
            <url>http://dev.nightlabs.org/maven-repository/repo/</url>
            <layout>default</layout>
        </repository>
    </repositories>
</profile>
and add the following mirror element:

<mirror>
    <id>maven-central</id>
    <url>http://repo1.maven.org/maven2/</url>
    <mirrorOf>*,!eclipselink.repository,!netbeans.repository</mirrorOf>
</mirror>
invoke Maven with gf-repo profile:

mvn -Pgf-repo install

Why do we have to checkout from ./branch/... but not from ./tags/... ?
Today someone renamed ./branches/3.1.1 to ./branches/3.1.2
This page: http://wikis.sun.com/display/GlassFish/FullBuildInstructions
explains to new-comers like me how to fully build from sources.
And beleve me it would work for me much better if I can expect sources
to come from a stabe place as normaly found under ./tags then a branch
which seems to change or gets renemd on the fly.

Josef

Posted by stadelma at Aug 02, 2011 06:02

Thank for the exhaustive instructions... I am also new to this and I will probably have to bookamrk this page and refer to it a few times but I do get the gist of it.

Thanks!

Pareto@
Business Ideas

Posted by pareto99 at Aug 08, 2011 10:34

I want to import the glassfish projects into eclipse for debugging, which prject do I have to import?

Posted by veit_ullmann at Nov 02, 2011 13:33

Hey guys, I am new to glassfish source code, when I use try to build the source code of glassfish 3.1.2, I kept encounter the error as following, please guide me out of this:

INFO] ------------------------------------------------------------------------
[INFO] Building mejb distribution fragment 3.1.2
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-enforcer-plugin:1.0-beta-1:enforce (enforce-maven) @ mejb-frag ---
[INFO] 
[INFO] --- maven-enforcer-plugin:1.0-beta-1:enforce (enforce-versions) @ mejb-frag ---
[INFO] 
[INFO] --- osgiversion-maven-plugin:1.1.14:compute-osgi-version (compute-osgi-version) @ mejb-frag ---
[INFO] 
[INFO] --- maven-glassfishbuild-plugin:3.1.1:echo (echo) @ mejb-frag ---
[INFO] ------------------------------------------------------------------------
[INFO] Building in /Users/barry/Professionals/Workspaces/Others/Glassfish/v3/3.1.2/common/mejb-frag
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-antrun-extended-plugin:1.41:run (default) @ mejb-frag ---
[INFO] Executing tasks
[resolveArtifact] Copying /Users/barry/Professionals/Workspaces/Others/Glassfish/v3/3.1.2/common/mejb/target/mejb.jar to /Users/barry/Professionals/Workspaces/Others/Glassfish/v3/3.1.2/common/mejb-frag/target/classes/glassfish/lib/install/applications/mejb.jar
     [null] Copying 1 file to /Users/barry/Professionals/Workspaces/Others/Glassfish/v3/3.1.2/common/mejb-frag/target/classes/glassfish/lib/install/applications
[INFO] Executed tasks
[INFO] 
[INFO] --- maven-resources-plugin:2.4.3:resources (default-resources) @ mejb-frag ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /Users/barry/Professionals/Workspaces/Others/Glassfish/v3/3.1.2/common/mejb-frag/src/main/resources
[INFO] 
[INFO] --- maven-bundle-plugin:2.0.1:manifest (bundle-manifest) @ mejb-frag ---
[WARNING] Ignoring project type distribution-fragment - supportedProjectTypes = [hk2-jar, bundle]
[INFO] 
[INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ mejb-frag ---
[INFO] ------------------------------------------------------------------------
INFO] ------------------------------------------------------------------------

[INFO] Building mejb distribution fragment 3.1.2

[INFO] ------------------------------------------------------------------------

[INFO] 

[INFO] --- maven-enforcer-plugin:1.0-beta-1:enforce (enforce-maven) @ mejb-frag ---

[INFO] 

[INFO] --- maven-enforcer-plugin:1.0-beta-1:enforce (enforce-versions) @ mejb-frag ---

[INFO] 

[INFO] --- osgiversion-maven-plugin:1.1.14:compute-osgi-version (compute-osgi-version) @ mejb-frag ---

[INFO] 

[INFO] --- maven-glassfishbuild-plugin:3.1.1:echo (echo) @ mejb-frag ---

[INFO] ------------------------------------------------------------------------

[INFO] Building in /Users/barry/Professionals/Workspaces/Others/Glassfish/v3/3.1.2/common/mejb-frag

[INFO] ------------------------------------------------------------------------

[INFO] 

[INFO] --- maven-antrun-extended-plugin:1.41:run (default) @ mejb-frag ---

[INFO] Executing tasks

[resolveArtifact] Copying /Users/barry/Professionals/Workspaces/Others/Glassfish/v3/3.1.2/common/mejb/target/mejb.jar to /Users/barry/Professionals/Workspaces/Others/Glassfish/v3/3.1.2/common/mejb-frag/target/classes/glassfish/lib/install/applications/mejb.jar

     [null] Copying 1 file to /Users/barry/Professionals/Workspaces/Others/Glassfish/v3/3.1.2/common/mejb-frag/target/classes/glassfish/lib/install/applications

[INFO] Executed tasks

[INFO] 

[INFO] --- maven-resources-plugin:2.4.3:resources (default-resources) @ mejb-frag ---

[INFO] Using 'UTF-8' encoding to copy filtered resources.

[INFO] skip non existing resourceDirectory /Users/barry/Professionals/Workspaces/Others/Glassfish/v3/3.1.2/common/mejb-frag/src/main/resources

[INFO] 

[INFO] --- maven-bundle-plugin:2.0.1:manifest (bundle-manifest) @ mejb-frag ---

[WARNING] Ignoring project type distribution-fragment - supportedProjectTypes = [hk2-jar, bundle]

[INFO] 

[INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ mejb-frag ---

[INFO] ------------------------------------------------------------------------

[INFO] Reactor Summary:
[INFO] 
[INFO] GlassFish Parent Project .......................... SUCCESS [1.146s]
[INFO] GlassFish Common modules .......................... SUCCESS [0.048s]
[INFO] Scattered Archive APIs of Glassfish ............... SUCCESS [1.119s]
[INFO] Public APIs of Glassfish V3 ....................... SUCCESS [1.058s]
[INFO] Repackaged external modules ....................... SUCCESS [0.241s]
[INFO] j-interop repackaged as a module .................. SUCCESS [1.758s]
[INFO] Common Utilities .................................. SUCCESS [6.745s]
[INFO] Simple Public APIs of Glassfish V3 ................ SUCCESS [0.142s]
[INFO] GlassFish Core modules ............................ SUCCESS [0.014s]
[INFO] Appserver Core Bootstraping Classes ............... SUCCESS [1.139s]
[INFO] Test utilities .................................... SUCCESS [0.242s]
[INFO] Admin Modules ..................................... SUCCESS [0.014s]
[INFO] admin-config-api .................................. SUCCESS [11.948s]
[INFO] Private APIs of Glassfish V3 ...................... SUCCESS [0.525s]
[INFO] Java EE API modules repackaged as OSGi bundles in GlassFish  SUCCESS [0.682s]
[INFO] javax.annotation API v.1.1 ........................ SUCCESS [0.628s]
[INFO] Super POM for Java EE API modules ................. SUCCESS [0.034s]
[INFO] javax.transaction API v.1.1 ....................... SUCCESS [0.607s]
[INFO] javax.enterprise.deploy API v.1.2 ................. SUCCESS [0.806s]
[INFO] javax.resource API v.1.6 .......................... SUCCESS [0.998s]
[INFO] javax.xml.rpc API v.1.1 ........................... SUCCESS [1.070s]
[INFO] javax.ejb API v.3.1 ............................... SUCCESS [1.396s]
[INFO] GlassFish Deployment Related Modules .............. SUCCESS [0.142s]
[INFO] Deployment Related Common Classes ................. SUCCESS [1.329s]
[INFO] GlassFish Java EE Annotation Framework ............ SUCCESS [0.338s]
[INFO] Deployment Object Library ......................... SUCCESS [16.732s]
[INFO] GlassFish Security Infrastructure and Technology Integration Modules  SUCCESS [0.010s]
[INFO] GlassFish SSL Implementation Module ............... SUCCESS [0.302s]
[INFO] javax.security.auth.message API v.1.0 ............. SUCCESS [0.334s]
[INFO] javax.security.jacc API v.1.4 ..................... SUCCESS [0.689s]
[INFO] JSR-196 Provider Framework Reference Implementation  SUCCESS [5.471s]
[INFO] GlassFish Transaction modules ..................... SUCCESS [0.009s]
[INFO] Transaction Service Internal API .................. SUCCESS [0.571s]
[INFO] GlassFish Java EE Connector Architecture related modules  SUCCESS [0.026s]
[INFO] Connectors Private APIs for GlassFish Containers .. SUCCESS [1.164s]
[INFO] GlassFish EJB container related modules ........... SUCCESS [0.025s]
[INFO] EJB container Internal API ........................ SUCCESS [0.272s]
[INFO] ldapbp repackaged as a module ..................... SUCCESS [0.470s]
[INFO] libpam4j repackaged as a module ................... SUCCESS [1.166s]
[INFO] Security Core Classes ............................. SUCCESS [1:31.442s]
[INFO] admin-util ........................................ SUCCESS [1:20.660s]
[INFO] Cluster 3.1.2 ..................................... SUCCESS [0.022s]
[INFO] Cluster Common 3.1.2 .............................. SUCCESS [0.735s]
[INFO] flashlight-framework .............................. SUCCESS [1:20.503s]
[INFO] Branding .......................................... SUCCESS [0.160s]
[INFO] trilead-ssh2 repackaged as a module ............... SUCCESS [0.496s]
[INFO] Cluster SSH Provisioning .......................... SUCCESS [0.755s]
[INFO] Appserver Logging Classes ......................... SUCCESS [1:22.142s]
[INFO] Kernel Classes .................................... SUCCESS [1:14.930s]
[INFO] GMS Bootstrap Module .............................. SUCCESS [12.115s]
[INFO] Cluster Admin ..................................... SUCCESS [7.351s]
[INFO] admin-launcher .................................... SUCCESS [0.703s]
[INFO] admin-cli ......................................... SUCCESS [6.308s]
[INFO] admin-server-management ........................... SUCCESS [1.366s]
[INFO] Cluster Admin CLI 3.1.2 ........................... SUCCESS [6.370s]
[INFO] GMS Module ........................................ SUCCESS [22.682s]
[INFO] javax.jms API v.1.1 ............................... SUCCESS [0.745s]
[INFO] javax.jws API v.1.1 ............................... SUCCESS [0.604s]
[INFO] javax.xml.soap API v.1.3 .......................... SUCCESS [0.450s]
[INFO] jmxremote_optional repackaged as a module ......... SUCCESS [0.745s]
[INFO] Glassfish MBeanServer support ..................... SUCCESS [0.733s]
[INFO] stats77 ........................................... SUCCESS [0.530s]
[INFO] AMX V3 Core ....................................... SUCCESS [4.073s]
[INFO] AMX V3 Core implementation ........................ SUCCESS [1.472s]
[INFO] AMX V3 Config ..................................... SUCCESS [1.435s]
[INFO] AMX V3 Config implementation ...................... SUCCESS [1.058s]
[INFO] javax.management.j2ee API v.1.1 ................... SUCCESS [0.871s]
[INFO] AMX V3 Java EE Management (JSR 77) API ............ SUCCESS [0.386s]
[INFO] AMX V3 Java EE Management (JSR 77) implemention ... SUCCESS [1.125s]
[INFO] AMX V3 extensions implementation .................. SUCCESS [1.238s]
[INFO] AMX Combining ..................................... SUCCESS [5.806s]
[INFO] Java EE Management JSR 77 MEJB .................... SUCCESS [1.158s]
[INFO] mejb distribution fragment ........................ FAILURE [2.506s]
[INFO] Java EE dependent public APIs of Glassfish V3 ..... SKIPPED
[INFO] admin-monitoring .................................. SKIPPED
[INFO] GlassFish ORB related modules ..................... SKIPPED
[INFO] GlassFish ORB connector implementation ............ SKIPPED
[INFO] Glassfish Naming .................................. SKIPPED
[INFO] Container Common .................................. SKIPPED
[INFO] GlassFish HA modules .............................. SKIPPED
[INFO] GlassFish ha-file-store ........................... SKIPPED
[INFO] GlassFish ha-shoal-cache-bootstrap ................ SKIPPED
[INFO] GlassFish ha-shoal-store .......................... SKIPPED
[INFO] Set of DTDs for GlassFish Java EE distributions ... SKIPPED
[INFO] Set of schemas for Java EE ........................ SKIPPED
[INFO] Deployment Client Classes and Interfaces .......... SKIPPED
[INFO] Deployment Related JavaEE Core Classes ............ SKIPPED
[INFO] Deployment Related JavaEE Full Profile Classes .... SKIPPED
[INFO] Deployment Related Admin Classes .................. SKIPPED
[INFO] AutoDeploy Classes ................................ SKIPPED
[INFO] JSR-88 JAR and dist. fragment ..................... SKIPPED
[INFO] JSR-88 implementation declaration JAR ............. SKIPPED
[INFO] JSR-88 dist. fragment ............................. SKIPPED
[INFO] admin-core ........................................ SKIPPED
[INFO] Backup Restore classes ............................ SKIPPED
[INFO] admin-cli-optional ................................ SKIPPED
[INFO] admin-rest ........................................ SKIPPED
[INFO] Java EE related distributions kernel Classes ...... SKIPPED
[INFO] GlassFish API Exporter Module ..................... SKIPPED
[INFO] GlassFish API Exporter Module Fragment ............ SKIPPED
[INFO] GlassFish Module Extending system bundle to provide access to additional JRE packages  SKIPPED
[INFO] JTA Implementation for Glassfish .................. SKIPPED
[INFO] Java EE Connector Architecture Runtime for GlassFish  SKIPPED
[INFO] JTS Implementation for Glassfish .................. SKIPPED
[INFO] GlassFish Web container related modules ........... SKIPPED
[INFO] Web Container Naming Utilities .................... SKIPPED
[INFO] Web Container Common Utilities .................... SKIPPED
[INFO] Core Servlet Container ............................ SKIPPED
[INFO] JSTL implementation connector module .............. SKIPPED
[INFO] Web module command line interface ................. SKIPPED
[INFO] Web container and GUI plug-in common classes ...... SKIPPED
[INFO] WebTier Security Integration ...................... SKIPPED
[INFO] GlassFish Web container embedded related modules .. SKIPPED
[INFO] GlassFish Web container Embedded APIs ............. SKIPPED
[INFO] Web Container glue code ........................... SKIPPED
[INFO] JSF implementation connector module ............... SKIPPED
[INFO] JSP caching taglib connector module ............... SKIPPED
[INFO] Connector for GlassFish Web Container ............. SKIPPED
[INFO] GlassFish Web container Embedded Implementation ... SKIPPED
[INFO] Web Container HA code ............................. SKIPPED
[INFO] Web Related Implementations for GlassFish ......... SKIPPED
[INFO] Weld integration for glassfish .................... SKIPPED
[INFO] Fragment bundle for exporting additional Weld packages for Weld generated proxies  SKIPPED
[INFO] Fragment bundle for Weld related testing .......... SKIPPED
[INFO] EJB Container connector for Glassfish ............. SKIPPED
[INFO] GlassFish persistence related modules ............. SKIPPED
[INFO] Common persistence code between JPA and CMP ....... SKIPPED
[INFO] GlassFish Core EJB container implementation ....... SKIPPED
[INFO] EJB Timer Service Application ..................... SKIPPED
[INFO] GlassFish EJB timer app database init scripts ..... SKIPPED
[INFO] EJB tier for GlassFish ............................ SKIPPED
[INFO] Descriptors of Java EE Connector Architecture module  SKIPPED
[INFO] Connector (gluecode) for GlassFish Java EE Connector Architecture Runtime  SKIPPED
[INFO] Connectors Inbound Support ........................ SKIPPED
[INFO] Java EE Connector Architecture Work Management module  SKIPPED
[INFO] Connectors admin .................................. SKIPPED
[INFO] org.netbeans.modules.schema2beans.all version RELEASE55 repackaged as a module  SKIPPED
[INFO] GlassFish Load-Balancer Plugin related modules .... SKIPPED
[INFO] Load-Balancer admin ............................... SKIPPED
[INFO] GlassFish JMS modules ............................. SKIPPED
[INFO] JMS Module ........................................ SKIPPED
[INFO] JMS admin ......................................... SKIPPED
[INFO] JDBC Resource Adapter ............................. SKIPPED
[INFO] Core JDBC Resource Adapter classes ................ SKIPPED
[INFO] JDBC 30 related classes for JDBC Resource Adapter . SKIPPED
[INFO] JDBC 40 related classes for JDBC Resource Adapter . SKIPPED
[INFO] JDBC Module ....................................... SKIPPED
[INFO] JDBC Templates .................................... SKIPPED
[INFO] Distribution Module for JDBC Resource Adapter ..... SKIPPED
[INFO] JDBC admin ........................................ SKIPPED
[INFO] GlassFish Module Extending system bundle to provide access to additional packages from oracle jdbc driver  SKIPPED
[INFO] JPA connector for glassfish ....................... SKIPPED
[INFO] Declaring EclipseLink dependencies ................ SKIPPED
[INFO] GlassFish cmp related modules ..................... SKIPPED
[INFO] utility module for cmp ............................ SKIPPED
[INFO] org.netbeans.modules.org-netbeans-modules-dbschema version RELEASE60 repackaged as a module  SKIPPED
[INFO] model module for cmp .............................. SKIPPED
[INFO] Database Generator module for cmp ................. SKIPPED
[INFO] ejb-mapping module for cmp ........................ SKIPPED
[INFO] enhancer module for cmp ........................... SKIPPED
[INFO] internal-api module for cmp ....................... SKIPPED
[INFO] antlr.all version 2.7.6 repackaged as a module .... SKIPPED
[INFO] support-sqlstore module for cmp ................... SKIPPED
[INFO] support ejb module for cmp ........................ SKIPPED
[INFO] GlassFish cmp scripts ............................. SKIPPED
[INFO] CMP tier for GlassFish ............................ SKIPPED
[INFO] GlassFish Extras modules .......................... SKIPPED
[INFO] GlassFish Grizzly adapter container implementation  SKIPPED
[INFO] GlassFish OSGi adapter to use OSGi modules as application code  SKIPPED
[INFO] GlassFish Upgrade Tool ............................ SKIPPED
[INFO] Upgrade Tool ...................................... SKIPPED
[INFO] GlassFish upgrade scripts ......................... SKIPPED
[INFO] GlassFish JavaEE Manifest pom ..................... SKIPPED
[INFO] GlassFish javaee.jar .............................. SKIPPED
[INFO] GlassFish javaee.jar distribution fragment used for packaging.  SKIPPED
[INFO] GlassFish appserv-rt Manifest pom ................. SKIPPED
[INFO] GlassFish appserv-rt.jar .......................... SKIPPED
[INFO] GlassFish appserv-rt distribution fragment used for packaging.  SKIPPED
[INFO] Admin Console Packages ............................ SKIPPED
[INFO] DataProvider ...................................... SKIPPED
[INFO] Admin Console Integration ......................... SKIPPED
[INFO] Admin Console Common .............................. SKIPPED
[INFO] Registration ...................................... SKIPPED
[INFO] Registration API .................................. SKIPPED
[INFO] Registration Impl ................................. SKIPPED
[INFO] GlassFish Registration ............................ SKIPPED
[INFO] Admin Console Core Jar ............................ SKIPPED
[INFO] Admin Console Clustering Support Plugin ........... SKIPPED
[INFO] Admin Console Community Edition Theme Plugin ...... SKIPPED
[INFO] Admin Console Web Container Plugin ................ SKIPPED
[INFO] Admin Console JTS Plugin .......................... SKIPPED
[INFO] Admin Console JDBC Plugin ......................... SKIPPED
[INFO] Admin Console Connectors Plugin ................... SKIPPED
[INFO] Admin Console JMS Plugin .......................... SKIPPED
[INFO] Admin Console EJB Container Plugin ................ SKIPPED
[INFO] Admin Console EJB Local (Lite) Plugin ............. SKIPPED
[INFO] Admin Console Corba Plugin ........................ SKIPPED
[INFO] Admin Console Full distribution plugin ............ SKIPPED
[INFO] Admin Console Update Center Plugin ................ SKIPPED
[INFO] Admin Console WAR ................................. SKIPPED
[INFO] Admin Console Install Fragment for distributions/web  SKIPPED
[INFO] Embedded GlassFish Shell .......................... SKIPPED
[INFO] Embedded GlassFish Shell dist. fragment ........... SKIPPED
[INFO] GlassFish ORB interface layer implementation ...... SKIPPED
[INFO] Ejb Security Integration .......................... SKIPPED
[INFO] GlassFish ORB enabler implementation .............. SKIPPED
[INFO] JMS GlassFish System RA Assembly .................. SKIPPED
[INFO] JAXR GlassFish System RA Assembly ................. SKIPPED
[INFO] Distribution Fragments for various OSGi platforms . SKIPPED
[INFO] Felix Web Console Extension for GlassFish ......... SKIPPED
[INFO] Glassfish OSGI Console Plugin ..................... SKIPPED
[INFO] A Pluggable InMemory JACC Provider ................ SKIPPED
[INFO] Security Related Implementatios for GlassFish ..... SKIPPED
[INFO] Ant repackaging ................................... SKIPPED
[INFO] Glassfish packages ................................ SKIPPED
[INFO] Glassfish Nucleus Base Bundle ..................... SKIPPED
[INFO] flashlight-agent .................................. SKIPPED
[INFO] GlassFish Flashlight Extra JDK Pkgs ............... SKIPPED
[INFO] Apache Felix and associated bundles and configuration files  SKIPPED
[INFO] Felix Package ..................................... SKIPPED
[INFO] GlassFish HK2 Package ............................. SKIPPED
[INFO] Glassfish Grizzly Package ......................... SKIPPED
[INFO] Glassfish Nucleus Package ......................... SKIPPED
[INFO] Glassfish Grizzly Package for Web/Full distribution  SKIPPED
[INFO] Base CORBA APIs Package ........................... SKIPPED
[INFO] Glassfish Commons Temporary Package ............... SKIPPED
[INFO] Shoal Package ..................................... SKIPPED
[INFO] Glassfish Clustering Package ...................... SKIPPED
[INFO] Glassfish HA Package .............................. SKIPPED
[INFO] Glassfish JavaHelp Package ........................ SKIPPED
[INFO] Upgrade Tool Package .............................. SKIPPED
[INFO] Glassfish Registration Package .................... SKIPPED
[INFO] Glassfish Management Package ...................... SKIPPED
[INFO] Glassfish Connector Package ....................... SKIPPED
[INFO] Glassfish JPA Package ............................. SKIPPED
[INFO] Corba Package ..................................... SKIPPED
[INFO] Glassfish Transaction Package ..................... SKIPPED
[INFO] Glassfish JSF Package ............................. SKIPPED
[INFO] Glassfish Web Container Package ................... SKIPPED
[INFO] Glassfish OSGi HTTP Service package ............... SKIPPED
[INFO] Glassfish OSGi Management console package ......... SKIPPED
[INFO] Glassfish JDBC Package ............................ SKIPPED
[INFO] Glassfish Admin GUI Package ....................... SKIPPED
[INFO] Glassfish EJB Lite Container Package .............. SKIPPED
[INFO] Glassfish Commons for Full Distribution ........... SKIPPED
[INFO] Glassfish Java Transaction Service ................ SKIPPED
[INFO] Glassfish Java Message Service .................... SKIPPED
[INFO] Glassfish EJB Package ............................. SKIPPED
[INFO] Glassfish CMP Package ............................. SKIPPED
[INFO] Glassfish JCDI Package ............................ SKIPPED
[INFO] Jersey Package .................................... SKIPPED
[INFO] GlassFish Web Services related modules ............ SKIPPED
[INFO] JSR-109 implementation to deploy Metro ............ SKIPPED
[INFO] GlassFish Metro Glue Code ......................... SKIPPED
[INFO] Connector for GlassFish Web Services Container .... SKIPPED
[INFO] SOAP/TCP integration code ......................... SKIPPED
[INFO] WebServices Security and JSR 196 SOAP Profile Implementation  SKIPPED
[INFO] GlassFish webservices scripts ..................... SKIPPED
[INFO] GlassFish Metro Related Fragments ................. SKIPPED
[INFO] Metro Package ..................................... SKIPPED
[INFO] Embedded GlassFish Static Shell ................... SKIPPED
[INFO] Embedded GlassFish Static Shell dist. fragment .... SKIPPED
[INFO] Embedded GlassFish Shell Jars ..................... SKIPPED
[INFO] JavaDB to be bundled into GlassFish ............... SKIPPED
[INFO] Glassfish Legal content distribution fragment ..... SKIPPED
[INFO] Verifier implementation module .................... SKIPPED
[INFO] GlassFish Verifier Extension Bundle ............... SKIPPED
[INFO] Verifier scripts .................................. SKIPPED
[INFO] Verifier Package .................................. SKIPPED
[INFO] App Client Modules ................................ SKIPPED
[INFO] App Client - client-side modules .................. SKIPPED
[INFO] ACC Config Classes (JAXB) ......................... SKIPPED
[INFO] Appclient Security Integration .................... SKIPPED
[INFO] Client OSGi module (including ACC) ................ SKIPPED
[INFO] Client library (including ACC) .................... SKIPPED
[INFO] GlassFish appclient scripts ....................... SKIPPED
[INFO] GlassFish App Client Server-side Modules .......... SKIPPED
[INFO] GlassFish AppClient Server-Side Connector ......... SKIPPED
[INFO] GlassFish AppClient Server-Side Core .............. SKIPPED
[INFO] Glassfish Application Client Package .............. SKIPPED
[INFO] Java DB Package ................................... SKIPPED
[INFO] MQ Package ........................................ SKIPPED
[INFO] Glassfish Commons Package ......................... SKIPPED
[INFO] Glassfish Web Profile Incorporation Package ....... SKIPPED
[INFO] Glassfish Full Profile Incorporation Package ...... SKIPPED
[INFO] Glassfish Web Profile Metapackage ................. SKIPPED
[INFO] Glassfish Full Profile Metapackage ................ SKIPPED
[INFO] Glassfish OSGi Feature Pack Incorporation Package . SKIPPED
[INFO] Glassfish OSGi Feature Pack Metapackage ........... SKIPPED
[INFO] Ant tasks ......................................... SKIPPED
[INFO] GlassFish Ant Tasks Package ....................... SKIPPED
[INFO] Service tag registry file distribution fragment ... SKIPPED
[INFO] Glassfish distributions ........................... SKIPPED
[INFO] Glassfish v3 Nucleus Distribution ................. SKIPPED
[INFO] Glassfish Minnow Distribution ..................... SKIPPED
[INFO] Glassfish v3 Web Distribution ..................... SKIPPED
[INFO] Glassfish Distribution ............................ SKIPPED
[INFO] GlassFish Tests related modules ................... SKIPPED
[INFO] btrace jar files .................................. SKIPPED
[INFO] GlassFish Flashlight Client ....................... SKIPPED
[INFO] GlassFish Flashlight Module ....................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 9:20.292s
[INFO] Finished at: Wed Aug 01 18:29:39 CST 2012
[INFO] Final Memory: 139M/300M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-jar-plugin:2.4:jar (default-jar) on project mejb-frag: Execution default-jar of goal org.apache.maven.plugins:maven-jar-plugin:2.4:jar failed: An API incompatibility was encountered while executing org.apache.maven.plugins:maven-jar-plugin:2.4:jar: java.lang.NoSuchMethodError: org.apache.maven.archiver.MavenArchiver.createArchive(Lorg/apache/maven/execution/MavenSession;Lorg/apache/maven/project/MavenProject;Lorg/apache/maven/archiver/MavenArchiveConfiguration;)V
[ERROR] -----------------------------------------------------
[ERROR] realm =    plugin>org.apache.maven.plugins:maven-jar-plugin:2.4
[ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
[ERROR] urls[0] = file:/Users/barry/.m2/repository/org/apache/maven/plugins/maven-jar-plugin/2.4/maven-jar-plugin-2.4.jar
[ERROR] urls[1] = file:/Users/barry/.m2/repository/org/apache/maven/maven-archiver/2.4/maven-archiver-2.4.jar
[ERROR] urls[2] = file:/Users/barry/.m2/repository/org/codehaus/plexus/plexus-interpolation/1.6/plexus-interpolation-1.6.jar
[ERROR] urls[3] = file:/Users/barry/.m2/repository/junit/junit/3.8.1/junit-3.8.1.jar
[ERROR] urls[4] = file:/Users/barry/.m2/repository/org/codehaus/plexus/plexus-archiver/2.1/plexus-archiver-2.1.jar
[ERROR] urls[5] = file:/Users/barry/.m2/repository/org/codehaus/plexus/plexus-io/2.0.2/plexus-io-2.0.2.jar
[ERROR] urls[6] = file:/Users/barry/.m2/repository/commons-lang/commons-lang/2.1/commons-lang-2.1.jar
[ERROR] urls[7] = file:/Users/barry/.m2/repository/org/codehaus/plexus/plexus-utils/3.0/plexus-utils-3.0.jar
[ERROR] Number of foreign imports: 1
[ERROR] import: Entry[import  from realm ClassRealm[project>org.glassfish.main.common:mejb-frag:3.1.2, parent: ClassRealm[maven.api, parent: null]]]
[ERROR] 
[ERROR] -----------------------------------------------------
[ERROR] -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginContainerException
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :mejb-frag

Posted by 20943 at Aug 01, 2012 10:46

what version of mvn/jdk are you using ?

Posted by 12181 at Aug 01, 2012 10:50

Thank you so much to reply fast.

According to https://github.com/javaee/glassfish/issues/18346
I replaced the maven-jar-plugin part with the code mentioned in that thread, and the module built passed.

Posted by 20943 at Aug 01, 2012 11:09

this issue is related to trunk.

Can you please answer my question ?

Posted by 12181 at Aug 01, 2012 11:12

Zhong-Barrys-MacBook-Pro:3.1.2 barry$ java -version

java version "1.6.0_33"

Java(TM) SE Runtime Environment (build 1.6.0_33-b03-424-11M3720)

Java HotSpot(TM) 64-Bit Server VM (build 20.8-b03-424, mixed mode)

Zhong-Barrys-MacBook-Pro:3.1.2 barry$ mvn -v

Apache Maven 3.0.3 (r1075438; 2011-03-01 01:31:09+0800)

Maven home: /usr/share/maven

Java version: 1.6.0_33, vendor: Apple Inc.

Java home: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home

Default locale: en_US, platform encoding: MacRoman

OS name: "mac os x", version: "10.7.4", arch: "x86_64", family: "mac"

Posted by 20943 at Aug 01, 2012 11:23

GlassFish 3.x must be built using maven 2.2.1

Posted by 12181 at Aug 01, 2012 11:27

Oops!

Thanks!

Posted by 20943 at Aug 01, 2012 11:48

Build passed. Thanks.

Is there any guide for developers to import glassfish projects into eclipse?

After mvn install successfully executed, and then I tried mvn eclipse:eclispe, but it was weird that "java nature" was not generated in ".project" file, and .classpath, .setting folder were not generated.

I also tried using "Maven Eclipse Plugin" to "import maven project", after a while analyzing all the pom.xml files, many projects generated, but some of them were not generated properly, their named as "$

Unknown macro: {extension-name}

".

Can you guide me?

Eclipse Version: Helios 

m2eclipse version:1.0.0.20110607-2117

Posted by 20943 at Aug 01, 2012 15:42

on a attempt to $ svn update my 6 months old local copy of the gf trunk, I run into an unexpected authentication problem; my $ svn update started normal and then some 40 minutes later login mask pops up asking me for a usernam and a password, which ofcourse I obviously dont have. What bothers me is that this request was not done immediatly but about after 40 minutes of updating my trunk-working copy. Now leaving me in a real mess! Then I saw somehere that a server certificate has been timed out. Now I just wonder how do I need to checkout from your trunks again. I am using Tortoise SVN for that. For developers with write / commit access to a remote svn repos https:// with SVN is OK, but what for the rest of the world? I would expect that there is a http:// url used to update working copies of the trunk without a need to commit, and without a need to login very late.

So - How can I checkout?what I saw was:

$ svn checkout https://svn.java.net/svn/glassfish~svn/trunk

authorization failed: Could not authenticate to server. rejected Basic challenge (https://svn.java.net)

Josef

Posted by 23678 at Feb 18, 2013 09:51

We are all experiencing the same problem currently. This is a temporary issue in java.net

It should be fixed very soon.

Posted by 12181 at Feb 18, 2013 09:55