Glassfish v4のビルド方法



v3 系については以下が参考になります
https://wikis.oracle.com/display/GlassFish/FullBuildInstructions


v4 系についても基本的には同じ手順となります。


Glassfish v4のビルドで必要なもの


OSX の場合はこんな感じで JAVA_HOME 指定しておきましょう。

export JAVA_HOME=`/usr/libexec/java_home -v 1.7`



maven の設定

eclipselink.repository と jvnet-nexus-promoted についてはセントラルリポジトリから除外する設定を行います。
${user.home}/.m2/settings.xml として以下の設定。

<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
                      http://maven.apache.org/xsd/settings-1.0.0.xsd">
  <localRepository/>
  <interactiveMode/>
  <usePluginRegistry/>
  <offline/>
  <pluginGroups/>
  <servers/>
  <mirrors>
    <mirror>
      <id>maven-central</id>
      <url>http://repo1.maven.org/maven2/</url>
      <mirrorOf>*,!eclipselink.repository,!jvnet-nexus-promoted</mirrorOf>
    </mirror>
  </mirrors>
  <proxies/>
  <profiles/>
  <activeProfiles/>
</settings>



チエックアウト

SVNリポジトリからソースファイルをチェックアウトします。

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



ビルド

OutOfMemory にならないようにヒープサイズ指定して、テストは時間かかるのでとりあえずスキップとしておきます。

export MAVEN_OPTS=-Xmx1024M -XX:MaxPermSize=512m
mvn install -DskipTests=true


ビルド時のメッセージはこんな感じになります。

[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building GlassFish Project 4.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-install-plugin:2.4:install (default-install) @ glassfish-main-aggregator ---
[INFO] Skipping artifact installation
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] GlassFish Nucleus Parent Project .................. SUCCESS [1.029s]
[INFO] Distribution Fragments for various OSGi platforms . SUCCESS [0.032s]
[INFO] Apache Felix, associated bundles and conf files ... SUCCESS [1.332s]
[INFO] Scattered Archive APIs of Glassfish ............... SUCCESS [1.920s]
[INFO] GlassFish Nucleus Grizzly modules ................. SUCCESS [0.012s]
[INFO] grizzly-config .................................... SUCCESS [3.466s]
[INFO] Nucleus Grizzly jars Combining .................... SUCCESS [3.366s]
[INFO] Public APIs of Glassfish .......................... SUCCESS [1.741s]
[INFO] GlassFish Nucleus Common modules .................. SUCCESS [0.009s]
[INFO] Common Utilities .................................. SUCCESS [1.778s]
[INFO] Simple Public APIs of Glassfish ................... SUCCESS [0.320s]
[INFO] GlassFish Nucleus Core modules .................... SUCCESS [0.014s]
[INFO] Appserver Core Bootstraping Classes ............... SUCCESS [0.452s]
[INFO] Test Utilities Modules ............................ SUCCESS [0.012s]
[INFO] Test utilities .................................... SUCCESS [0.053s]
[INFO] Admin Modules ..................................... SUCCESS [0.013s]
[INFO] admin-config-api .................................. SUCCESS [11.160s]
[INFO] Private APIs of Glassfish ......................... SUCCESS [0.928s]
[INFO] Nucleus Security Parent ........................... SUCCESS [0.012s]
[INFO] GlassFish SSL Implementation Module ............... SUCCESS [0.385s]
[INFO] GlassFish Nucleus Deployment Related Modules ...... SUCCESS [0.013s]
[INFO] Deployment Related Common Classes ................. SUCCESS [1.093s]
[INFO] Repackaged nucleus external modules ............... SUCCESS [0.014s]
[INFO] ldapbp repackaged as a module ..................... SUCCESS [0.246s]
[INFO] Security Core Classes ............................. SUCCESS [1.927s]
[INFO] Security Services and SPI ......................... SUCCESS [1.360s]
[INFO] admin-util ........................................ SUCCESS [1.704s]
[INFO] Admin CLI bridge command to the OSGi Shell ........ SUCCESS [0.433s]
[INFO] trilead-ssh2 repackaged as a module ............... SUCCESS [0.488s]
[INFO] j-interop repackaged as a module .................. SUCCESS [1.206s]
[INFO] Cluster ........................................... SUCCESS [0.010s]
[INFO] cluster-common .................................... SUCCESS [0.465s]
[INFO] Cluster SSH Provisioning .......................... SUCCESS [0.326s]
[INFO] Nucleus Logging Classes ........................... SUCCESS [0.692s]
[INFO] admin-launcher .................................... SUCCESS [0.628s]
[INFO] admin-cli ......................................... SUCCESS [0.918s]
[INFO] Admin CLI, interactive OSGi shell command ......... SUCCESS [0.742s]
[INFO] OSGi Container .................................... SUCCESS [0.413s]
[INFO] Admin CLI interactive OSGi Shell command l10n ..... SUCCESS [0.152s]
[INFO] Admin CLI bridge command to the OSGi Shell l10n ... SUCCESS [0.134s]
[INFO] flashlight-framework .............................. SUCCESS [0.773s]
[INFO] GlassFish API Exporter Module ..................... SUCCESS [0.171s]
[INFO] Kernel Classes .................................... SUCCESS [2.439s]
[INFO] GMS Bootstrap Module .............................. SUCCESS [0.239s]
[INFO] cluster-admin ..................................... SUCCESS [0.991s]
[INFO] admin-server-management ........................... SUCCESS [1.053s]
[INFO] cluster-cli ....................................... SUCCESS [0.939s]
[INFO] GMS Module ........................................ SUCCESS [0.513s]
[INFO] GMS Bootstrap Module l10n ......................... SUCCESS [0.112s]
[INFO] cluster-cli l10n .................................. SUCCESS [0.468s]
[INFO] Cluster SSH Provisioning l10n ..................... SUCCESS [0.134s]
[INFO] cluster-common l10n ............................... SUCCESS [0.170s]
[INFO] cluster-admin l10n ................................ SUCCESS [0.856s]
[INFO] setup-local-dcom l10n ............................. SUCCESS [0.114s]
[INFO] jmxremote_optional repackaged as a module ......... SUCCESS [0.625s]
[INFO] Glassfish MBeanServer support ..................... SUCCESS [0.457s]
[INFO] AMX Core .......................................... SUCCESS [1.749s]
[INFO] Common Utilities l10n ............................. SUCCESS [0.328s]
[INFO] Private APIs of Glassfish l10n .................... SUCCESS [0.103s]
[INFO] Public APIs of Glassfish l10n ..................... SUCCESS [0.125s]
[INFO] Glassfish MBeanServer support l10n ................ SUCCESS [0.107s]
[INFO] GlassFish Extra JRE Packages ...................... SUCCESS [0.034s]
[INFO] Glassfish logging classes l10n .................... SUCCESS [0.241s]
[INFO] Kernel classes l10n ............................... SUCCESS [0.605s]
[INFO] Context Propagation ............................... SUCCESS [0.801s]
[INFO] admin-monitoring .................................. SUCCESS [0.752s]
[INFO] GlassFish Admin REST Parent ....................... SUCCESS [0.012s]
[INFO] GlassFish Admin REST Testing Framework ............ SUCCESS [0.082s]
[INFO] GlassFish Admin REST Client ....................... SUCCESS [0.334s]
[INFO] Connector for GlassFish Admin REST Service ........ SUCCESS [0.606s]
[INFO] GlassFish Admin REST Service ...................... SUCCESS [2.094s]
[INFO] GlassFish Admin REST Service l10n ................. SUCCESS [0.145s]
[INFO] admin-launcher l10n ............................... SUCCESS [0.106s]
[INFO] admin-monitoring l10n ............................. SUCCESS [0.152s]
[INFO] admin-config-api l10n ............................. SUCCESS [0.487s]
[INFO] admin-cli l10n .................................... SUCCESS [0.382s]
[INFO] admin-server-management l10n ...................... SUCCESS [0.552s]
[INFO] admin-util l10n ................................... SUCCESS [0.275s]
[INFO] Nucleus template .................................. SUCCESS [1.000s]
[INFO] flashlight-agent .................................. SUCCESS [0.033s]
[INFO] GlassFish Flashlight Extra JDK Pkgs ............... SUCCESS [0.033s]
[INFO] Flashlight ........................................ SUCCESS [0.010s]
[INFO] flashlight-framework l10n ......................... SUCCESS [0.248s]
[INFO] Deployment Related Admin Classes .................. SUCCESS [0.925s]
[INFO] AutoDeploy Classes ................................ SUCCESS [0.434s]
[INFO] Set of DTDs for Nucleus distributions ............. SUCCESS [0.019s]
[INFO] Set of schemas for Nucleus ........................ SUCCESS [0.019s]
[INFO] Deployment Related Common Classes l10n ............ SUCCESS [0.137s]
[INFO] AutoDeploy Related Admin Classes l10n ............. SUCCESS [0.472s]
[INFO] AutoDeploy Classes l10n ........................... SUCCESS [0.111s]
[INFO] virtualbox client SDK repackaged as module ........ SUCCESS [1.885s]
[INFO] antlr.all version 2.7.6 repackaged as a module .... SUCCESS [0.605s]
[INFO] Glassfish Nucleus packages ........................ SUCCESS [0.028s]
[INFO] Felix Nucleus Package ............................. SUCCESS [0.081s]
[INFO] Nucleus HK2 Package ............................... SUCCESS [0.045s]
[INFO] Nucleus Grizzly Package ........................... SUCCESS [0.185s]
[INFO] Nucleus Jersey Package ............................ SUCCESS [0.091s]
[INFO] Nucleus Package ................................... SUCCESS [1.537s]
[INFO] Nucleus Base CORBA APIs Package ................... SUCCESS [0.043s]
[INFO] Nucleus Commons Package ........................... SUCCESS [0.106s]
[INFO] Nucleus Shoal Package ............................. SUCCESS [0.030s]
[INFO] Nucleus Clustering Package ........................ SUCCESS [0.397s]
[INFO] Nucleus Management Package ........................ SUCCESS [0.125s]
[INFO] Glassfish OSGi Support Package .................... SUCCESS [0.244s]
[INFO] Glassfish JMX Package ............................. SUCCESS [0.134s]
[INFO] Nucleus Clustering l10n Package ................... SUCCESS [0.140s]
[INFO] Security Core Classes l10n ........................ SUCCESS [0.806s]
[INFO] Security Services and SPI l10n .................... SUCCESS [0.112s]
[INFO] Nucleus Commons Package l10n package .............. SUCCESS [0.112s]
[INFO] Nucleus l10n Package .............................. SUCCESS [0.361s]
[INFO] Nucleus Management l10n Package ................... SUCCESS [0.039s]
[INFO] Nucleus distributions ............................. SUCCESS [0.012s]
[INFO] Glassfish Atomic Distribution ..................... SUCCESS [22.035s]
[INFO] Nucleus Distribution .............................. SUCCESS [17.999s]
[INFO] nucleus.tests.utils-ng ............................ SUCCESS [0.041s]
[INFO] Diagnostics ....................................... SUCCESS [0.006s]
[INFO] Diagnostics API ................................... SUCCESS [0.197s]
[INFO] GlassFish Diagnostics Context ..................... SUCCESS [0.321s]
[INFO] nucleus.resources ................................. SUCCESS [0.378s]
[INFO] nucleus.resources l10n ............................ SUCCESS [0.091s]
[INFO] GlassFish Appserver Parent Project ................ SUCCESS [0.010s]
[INFO] GlassFish Common modules .......................... SUCCESS [0.012s]
[INFO] stats77 ........................................... SUCCESS [0.392s]
[INFO] GlassFish Java EE Annotation Framework ............ SUCCESS [0.287s]
[INFO] GlassFish Deployment Related Modules .............. SUCCESS [0.007s]
[INFO] Deployment Object Library ......................... SUCCESS [1.484s]
[INFO] AMX JavaEE ........................................ SUCCESS [0.413s]
[INFO] Java EE dependent public APIs of Glassfish ........ SUCCESS [0.177s]
[INFO] GlassFish Security Parent ......................... SUCCESS [0.006s]
[INFO] Jaspic Provider Framework ......................... SUCCESS [0.197s]
[INFO] GlassFish Transaction modules ..................... SUCCESS [0.008s]
[INFO] Transaction Service Internal API .................. SUCCESS [0.304s]
[INFO] GlassFish Resources infrastructure related modules  SUCCESS [0.007s]
[INFO] Resources Connector ............................... SUCCESS [0.622s]
[INFO] Connectors Parent ................................. SUCCESS [0.008s]
[INFO] Connectors Private APIs for GlassFish Containers .. SUCCESS [0.911s]
[INFO] GlassFish EJB container related modules ........... SUCCESS [0.007s]
[INFO] EJB container Internal API ........................ SUCCESS [0.241s]
[INFO] Repackaged external modules ....................... SUCCESS [0.008s]
[INFO] libpam4j repackaged as a module ................... SUCCESS [0.462s]
[INFO] Java EE Security Core Classes ..................... SUCCESS [0.821s]
[INFO] Java EE Management JSR 77 MEJB .................... SUCCESS [0.448s]
[INFO] mejb distribution fragment ........................ SUCCESS [0.062s]
[INFO] Glassfish Naming .................................. SUCCESS [0.574s]
[INFO] Container Common .................................. SUCCESS [0.780s]
[INFO] GlassFish Java EE Annotation Framework l10n ....... SUCCESS [0.114s]
[INFO] Container Common l10n ............................. SUCCESS [0.139s]
[INFO] glassfish-naming l10n ............................. SUCCESS [0.117s]
[INFO] stats77 l10n ...................................... SUCCESS [0.119s]
[INFO] GlassFish HA modules .............................. SUCCESS [0.011s]
[INFO] GlassFish ha-file-store ........................... SUCCESS [0.186s]
[INFO] GlassFish ha-shoal-cache-bootstrap ................ SUCCESS [0.244s]
[INFO] GlassFish ha-shoal-store .......................... SUCCESS [0.456s]
[INFO] Set of DTDs for GlassFish Java EE distributions ... SUCCESS [0.154s]
[INFO] Set of schemas for Java EE ........................ SUCCESS [0.313s]
[INFO] Deployment Client Classes and Interfaces .......... SUCCESS [0.684s]
[INFO] Deployment Related JavaEE Core Classes ............ SUCCESS [0.433s]
[INFO] GlassFish Web container related modules ........... SUCCESS [0.010s]
[INFO] Connector for GlassFish Web Container ............. SUCCESS [0.563s]
[INFO] EJB Container connector for Glassfish ............. SUCCESS [0.601s]
[INFO] GlassFish Connectors Connector .................... SUCCESS [0.355s]
[INFO] App Client Modules ................................ SUCCESS [0.010s]
[INFO] GlassFish App Client Server-side Modules .......... SUCCESS [0.009s]
[INFO] GlassFish AppClient Server-Side Connector ......... SUCCESS [0.252s]
[INFO] Deployment Related JavaEE Full Profile Classes .... SUCCESS [0.731s]
[INFO] JSR-88 JAR and dist. fragment ..................... SUCCESS [0.009s]
[INFO] JSR-88 implementation declaration JAR ............. SUCCESS [0.031s]
[INFO] JSR-88 dist. fragment ............................. SUCCESS [0.031s]
[INFO] Deployment Related JavaEE Core Classes l10n ....... SUCCESS [0.136s]
[INFO] Deployment Object Library ......................... SUCCESS [0.202s]
[INFO] Deployment JavaEE Full l10n ....................... SUCCESS [0.101s]
[INFO] Deployment Client Classes and Interfaces l10n ..... SUCCESS [0.154s]
[INFO] Admin Modules ..................................... SUCCESS [0.009s]
[INFO] Backup Restore classes ............................ SUCCESS [0.418s]
[INFO] App Server CLI Skinning Class ..................... SUCCESS [0.260s]
[INFO] admin-cli-optional ................................ SUCCESS [0.371s]
[INFO] admin-core ........................................ SUCCESS [0.375s]
[INFO] Backup Restore classes l10n ....................... SUCCESS [0.099s]
[INFO] admin-cli-optional-l10n ........................... SUCCESS [0.200s]
[INFO] Appserver template ................................ SUCCESS [0.099s]
[INFO] GlassFish Core modules ............................ SUCCESS [0.008s]
[INFO] Java EE related distributions kernel Classes ...... SUCCESS [0.333s]
[INFO] GlassFish API Exporter Module Fragment ............ SUCCESS [0.621s]
[INFO] JTA Implementation for Glassfish .................. SUCCESS [0.587s]
[INFO] GlassFish ORB related modules ..................... SUCCESS [0.010s]
[INFO] GlassFish ORB enabler implementation .............. SUCCESS [0.506s]
[INFO] GlassFish ORB connector implementation ............ SUCCESS [0.535s]
[INFO] JavaMail Resources Support related modules ........ SUCCESS [0.014s]
[INFO] JavaMail Connector ................................ SUCCESS [0.643s]
[INFO] Connectors Runtime ................................ SUCCESS [1.324s]
[INFO] JTS Implementation for Glassfish .................. SUCCESS [1.474s]
[INFO] JTS Implementation for Glassfish l10n ............. SUCCESS [0.169s]
[INFO] JTA Implementation for Glassfish l10n ............. SUCCESS [0.188s]
[INFO] Transaction Service Internal API l10n ............. SUCCESS [0.096s]
[INFO] Web Container Naming Utilities .................... SUCCESS [0.571s]
[INFO] Web Container Common Utilities .................... SUCCESS [0.457s]
[INFO] Core Servlet Container ............................ SUCCESS [2.131s]
[INFO] JSTL implementation connector module .............. SUCCESS [0.396s]
[INFO] Jersey MVC TLD connector implementation module .... SUCCESS [0.399s]
[INFO] Web module command line interface ................. SUCCESS [0.697s]
[INFO] Web container and GUI plug-in common classes ...... SUCCESS [0.325s]
[INFO] WebTier Security Integration ...................... SUCCESS [0.402s]
[INFO] GlassFish Web container embedded related modules .. SUCCESS [0.006s]
[INFO] GlassFish Web container Embedded APIs ............. SUCCESS [0.112s]
[INFO] Server-Sent Events ................................ SUCCESS [0.267s]
[INFO] Web Container glue code ........................... SUCCESS [2.015s]
[INFO] JSF implementation connector module ............... SUCCESS [0.601s]
[INFO] JSP caching taglib connector module ............... SUCCESS [0.476s]
[INFO] Web Container HA code ............................. SUCCESS [0.433s]
[INFO] Web Related Implementations for GlassFish ......... SUCCESS [0.094s]
[INFO] Weld connector for glassfish ...................... SUCCESS [1.250s]
[INFO] Weld integration for glassfish .................... SUCCESS [11.206s]
[INFO] Weld Integration Fragment ......................... SUCCESS [0.054s]
[INFO] Fragment bundle for Weld related testing .......... SUCCESS [0.140s]
[INFO] Web container and GUI plug-in common classes l10n . SUCCESS [2.302s]
[INFO] Web module command line interface l10n ............ SUCCESS [2.592s]
[INFO] Web Container Common Utilities l10n ............... SUCCESS [0.063s]
[INFO] Core Servlet Container l10n ....................... SUCCESS [0.420s]
[INFO] Web Container glue code l10n ...................... SUCCESS [0.113s]
[INFO] Web Container Naming Utilities l10n ............... SUCCESS [0.076s]
[INFO] GlassFish persistence related modules ............. SUCCESS [0.006s]
[INFO] Common persistence code between JPA and CMP ....... SUCCESS [0.570s]
[INFO] GlassFish Core EJB container implementation ....... SUCCESS [29.033s]
[INFO] Full EJB Container add-ons ........................ SUCCESS [1.111s]
[INFO] EJB Timer Service Application ..................... SUCCESS [9.079s]
[INFO] GlassFish EJB timer app database init scripts ..... SUCCESS [0.041s]
[INFO] EJB tier for GlassFish ............................ SUCCESS [0.029s]
[INFO] EJB Container connector for Glassfish l10n ........ SUCCESS [0.093s]
[INFO] GlassFish Core EJB container implementation l10n .. SUCCESS [2.062s]
[INFO] GlassFish resources runtime ....................... SUCCESS [0.586s]
[INFO] GlassFish JavaMail runtime ........................ SUCCESS [0.469s]
[INFO] JavaMail Connector l10n ........................... SUCCESS [0.101s]
[INFO] Resources Connector l10n .......................... SUCCESS [0.264s]
[INFO] JavaEE Connector Architecture Descriptors ......... SUCCESS [0.159s]
[INFO] Connectors Inbound Support ........................ SUCCESS [0.608s]
[INFO] Work Management ................................... SUCCESS [0.717s]
[INFO] JDBC Module ....................................... SUCCESS [0.006s]
[INFO] JDBC Config Module ................................ SUCCESS [0.440s]
[INFO] Connectors admin .................................. SUCCESS [3.335s]
[INFO] Connectors Internal APi l10n ...................... SUCCESS [0.074s]
[INFO] Connectors Runtime l10n ........................... SUCCESS [0.147s]
[INFO] Work Management l10n .............................. SUCCESS [0.061s]
[INFO] Connectors admin l10n ............................. SUCCESS [3.136s]
[INFO] Connectors Inbound Support l10n ................... SUCCESS [0.104s]
[INFO] GlassFish Load-Balancer Plugin related modules .... SUCCESS [0.009s]
[INFO] Load Balancer Internal API ........................ SUCCESS [0.610s]
[INFO] Load-Balancer admin ............................... SUCCESS [10.415s]
[INFO] Load-Balancer admin l10n .......................... SUCCESS [2.611s]
[INFO] Load Balancer Internal API l10n ................... SUCCESS [0.236s]
[INFO] GlassFish JMS modules ............................. SUCCESS [0.005s]
[INFO] JMS Connector Module for Runtime .................. SUCCESS [0.216s]
[INFO] JMS Module ........................................ SUCCESS [4.569s]
[INFO] JMS admin ......................................... SUCCESS [3.243s]
[INFO] JMS Injection Module for Runtime .................. SUCCESS [2.101s]
[INFO] JMS module l10n ................................... SUCCESS [0.068s]
[INFO] JMS admin l10n .................................... SUCCESS [1.921s]
[INFO] JMS Connector Module for Runtime l10n ............. SUCCESS [0.100s]
[INFO] JMS Injection Module for Runtime l10n ............. SUCCESS [0.095s]
[INFO] JDBC Resource Adapter ............................. SUCCESS [0.009s]
[INFO] Core JDBC Resource Adapter classes ................ SUCCESS [0.952s]
[INFO] JDBC 30 related classes for JDBC Resource Adapter . SUCCESS [0.370s]
[INFO] JDBC 40 related classes for JDBC Resource Adapter . SUCCESS [0.551s]
[INFO] JDBC Templates .................................... SUCCESS [0.088s]
[INFO] Distribution Module for JDBC Resource Adapter ..... SUCCESS [0.501s]
[INFO] Core JDBC Resource Adapter classes l10n ........... SUCCESS [0.087s]
[INFO] JDBC Runtime Module ............................... SUCCESS [16.407s]
[INFO] JDBC admin ........................................ SUCCESS [3.224s]
[INFO] JDBC admin l10n ................................... SUCCESS [2.160s]
[INFO] JDBC Config Module l10n ........................... SUCCESS [0.058s]
[INFO] JDBC Runtime Module l10n .......................... SUCCESS [0.059s]
[INFO] GlassFish Oracle JDBC Packages .................... SUCCESS [0.021s]
[INFO] Connector for JPA runtime in glassfish ............ SUCCESS [0.368s]
[INFO] JPA container for glassfish ....................... SUCCESS [0.557s]
[INFO] Declaring EclipseLink dependencies ................ SUCCESS [13.110s]
[INFO] GlassFish cmp related modules ..................... SUCCESS [0.006s]
[INFO] utility module for cmp ............................ SUCCESS [0.584s]
[INFO] model module for cmp .............................. SUCCESS [5.531s]
[INFO] Database Generator module for cmp ................. SUCCESS [0.496s]
[INFO] ejb-mapping module for cmp ........................ SUCCESS [0.679s]
[INFO] enhancer module for cmp ........................... SUCCESS [1.391s]
[INFO] internal-api module for cmp ....................... SUCCESS [0.365s]
[INFO] Entity Bean container ............................. SUCCESS [0.895s]
[INFO] support-sqlstore module for cmp ................... SUCCESS [34.016s]
[INFO] support ejb module for cmp ........................ SUCCESS [2.365s]
[INFO] GlassFish cmp scripts ............................. SUCCESS [0.018s]
[INFO] CMP tier for GlassFish ............................ SUCCESS [0.037s]
[INFO] JPA container for glassfish l10n .................. SUCCESS [0.059s]
[INFO] GlassFish cmp related modules l10n ................ SUCCESS [0.006s]
[INFO] Database Generator module for cmp l10n ............ SUCCESS [0.082s]
[INFO] utility module for cmp l10n ....................... SUCCESS [0.091s]
[INFO] support ejb module for cmp l10n ................... SUCCESS [0.151s]
[INFO] ejb-mapping module for cmp l10n ................... SUCCESS [0.073s]
[INFO] support-sqlstore module for cmp l10n .............. SUCCESS [0.149s]
[INFO] enhancer module for cmp l10n ...................... SUCCESS [0.062s]
[INFO] model module for cmp l10n ......................... SUCCESS [0.074s]
[INFO] Concurrency Utilities Modules ..................... SUCCESS [0.006s]
[INFO] Concurrent Connector Module ....................... SUCCESS [0.309s]
[INFO] Concurrent Implementation Module .................. SUCCESS [7.013s]
[INFO] Concurrent Connector Module l10n .................. SUCCESS [0.070s]
[INFO] Concurrent Implementation Module l10n ............. SUCCESS [0.098s]
[INFO] Batch runtime modules for Glassfish ............... SUCCESS [0.008s]
[INFO] Batch database init scripts for GlassFish ......... SUCCESS [0.026s]
[INFO] Batch Connector for Glassfish ..................... SUCCESS [8.094s]
[INFO] Batch Commands for Glassfish ...................... SUCCESS [7.400s]
[INFO] GlassFish Extras modules .......................... SUCCESS [0.006s]
[INFO] GlassFish JavaEE Manifest pom ..................... SUCCESS [0.006s]
[INFO] GlassFish javaee.jar .............................. SUCCESS [0.021s]
[INFO] GlassFish javaee.jar distribution fragment ........ SUCCESS [0.018s]
[INFO] GlassFish appserv-rt Manifest pom ................. SUCCESS [0.007s]
[INFO] GlassFish appserv-rt.jar .......................... SUCCESS [0.020s]
[INFO] GlassFish appserv-rt distribution fragment ........ SUCCESS [0.028s]
[INFO] DataProvider ...................................... SUCCESS [3.785s]
[INFO] Admin Console Integration ......................... SUCCESS [0.306s]
[INFO] Admin Console Integration ......................... SUCCESS [0.167s]
[INFO] Admin Console Packages ............................ SUCCESS [6.913s]
[INFO] Admin Console Common .............................. SUCCESS [30.081s]
[INFO] Registration ...................................... SUCCESS [0.007s]
[INFO] Registration API .................................. SUCCESS [0.102s]
[INFO] Registration Impl ................................. SUCCESS [0.329s]
[INFO] GlassFish Registration ............................ SUCCESS [4.504s]
[INFO] Admin Console Core Jar ............................ SUCCESS [20.217s]
[INFO] Admin Console Concurrent Plugin ................... SUCCESS [4.165s]
[INFO] Admin Console Clustering Support Plugin ........... SUCCESS [4.396s]
[INFO] Admin Console Community Edition Theme Plugin ...... SUCCESS [0.311s]
[INFO] Admin Console Web Container Plugin ................ SUCCESS [5.766s]
[INFO] Admin Console JTS Plugin .......................... SUCCESS [4.725s]
[INFO] Admin Console JDBC Plugin ......................... SUCCESS [4.815s]
[INFO] Admin Console Connectors Plugin ................... SUCCESS [3.692s]
[INFO] Admin Console JMS Plugin .......................... SUCCESS [8.066s]
[INFO] Admin Console EJB Container Plugin ................ SUCCESS [4.213s]
[INFO] Admin Console EJB Local (Lite) Plugin ............. SUCCESS [4.787s]
[INFO] Admin Console Corba Plugin ........................ SUCCESS [3.911s]
[INFO] Admin Console Full distribution plugin ............ SUCCESS [5.599s]
[INFO] Admin Console Update Center Plugin ................ SUCCESS [0.517s]
[INFO] Admin Console WAR ................................. SUCCESS [5.796s]
[INFO] Admin Console Install Fragment for Web distro ..... SUCCESS [0.472s]
[INFO] Admin Console Update Center Plugin l10n ........... SUCCESS [0.081s]
[INFO] Admin Console Full distribution plugin l10n ....... SUCCESS [8.516s]
[INFO] Admin Console Common l10n ......................... SUCCESS [7.791s]
[INFO] Admin Console Corba Plugin l10n ................... SUCCESS [4.633s]
[INFO] Admin Console JTS Plugin l10n ..................... SUCCESS [4.213s]
[INFO] Admin Console Community Edition Theme Plugin l10n . SUCCESS [0.131s]
[INFO] Admin Console Web Container Plugin l10n ........... SUCCESS [5.312s]
[INFO] Admin Console JMS Plugin l10n ..................... SUCCESS [5.461s]
[INFO] Admin Console JDBC Plugin l10n .................... SUCCESS [4.591s]
[INFO] Admin Console EJB Container Plugin l10n ........... SUCCESS [4.454s]
[INFO] Admin Console Clustering Support Plugin l10n ...... SUCCESS [6.218s]
[INFO] Admin Console Connectors Plugin l10n .............. SUCCESS [6.151s]
[INFO] Admin Console EJB Local (Lite) Plugin l10n ........ SUCCESS [4.053s]
[INFO] Admin Console Core Jar l10n ....................... SUCCESS [0.169s]
[INFO] Admin Console Concurrent Plugin L10n .............. SUCCESS [4.755s]
[INFO] Woodstock webuijsf localization ................... SUCCESS [0.202s]
[INFO] Woodstock webuijsf suntheme localization .......... SUCCESS [0.281s]
[INFO] Embedded GlassFish Shell .......................... SUCCESS [3.284s]
[INFO] Embedded GlassFish Shell dist. fragment ........... SUCCESS [0.028s]
[INFO] Glassfish packages ................................ SUCCESS [0.009s]
[INFO] Glassfish CMP Package ............................. SUCCESS [0.189s]
[INFO] Glassfish Commons Package ......................... SUCCESS [5.703s]
[INFO] Glassfish Clustering Package ...................... SUCCESS [0.331s]
[INFO] JAXR GlassFish System RA Assembly ................. SUCCESS [3.948s]
[INFO] Ant repackaging ................................... SUCCESS [10.895s]
[INFO] Glassfish Commons for Full Distribution ........... SUCCESS [4.014s]
[INFO] Corba Package ..................................... SUCCESS [0.135s]
[INFO] Base CORBA APIs Package ........................... SUCCESS [0.284s]
[INFO] GlassFish ORB interface layer implementation ...... SUCCESS [0.931s]
[INFO] Ejb Security Integration .......................... SUCCESS [0.902s]
[INFO] Glassfish EJB Package ............................. SUCCESS [0.102s]
[INFO] Glassfish EJB Lite Container Package .............. SUCCESS [0.110s]
[INFO] GlassFish HK2 Package ............................. SUCCESS [0.458s]
[INFO] Glassfish Grizzly Package ......................... SUCCESS [0.174s]
[INFO] Grizzly Glassfish Extra modules ................... SUCCESS [0.007s]
[INFO] GlassFish Grizzly adapter container implementation  SUCCESS [0.237s]
[INFO] Glassfish Grizzly extra jars Combining ............ SUCCESS [7.863s]
[INFO] Glassfish Grizzly Package ......................... SUCCESS [0.079s]
[INFO] Glassfish Connector Package ....................... SUCCESS [0.270s]
[INFO] Glassfish JCDI Package ............................ SUCCESS [5.053s]
[INFO] Glassfish JDBC Package ............................ SUCCESS [0.154s]
[INFO] JMS GlassFish System RA Assembly .................. SUCCESS [21.626s]
[INFO] Glassfish Java Message Service .................... SUCCESS [0.544s]
[INFO] Glassfish JPA Package ............................. SUCCESS [0.669s]
[INFO] Glassfish JSF Package ............................. SUCCESS [0.210s]
[INFO] Glassfish Transaction Package ..................... SUCCESS [0.035s]
[INFO] Glassfish Java Transaction Service ................ SUCCESS [0.058s]
[INFO] Glassfish Management Package ...................... SUCCESS [0.139s]
[INFO] Glassfish Nucleus Package ......................... SUCCESS [1.233s]
[INFO] Glassfish Web Container Package ................... SUCCESS [27.451s]
[INFO] Jersey Package .................................... SUCCESS [29.123s]
[INFO] GlassFish Web Services related modules ............ SUCCESS [0.008s]
[INFO] JSR-109 implementation to deploy Metro ............ SUCCESS [29.552s]
[INFO] GlassFish Metro Glue Code ......................... SUCCESS [1.067s]
[INFO] Connector for GlassFish Web Services Container .... SUCCESS [1.102s]
[INFO] SOAP/TCP integration code ......................... SUCCESS [1.290s]
[INFO] WebServices Security and JSR 196 implementation ... SUCCESS [1.645s]
[INFO] GlassFish webservices scripts ..................... SUCCESS [0.030s]
[INFO] GlassFish Metro Related Fragments ................. SUCCESS [4.235s]
[INFO] Metro Package ..................................... SUCCESS [7.462s]
[INFO] Embedded GlassFish Static Shell ................... SUCCESS [3.460s]
[INFO] Embedded GlassFish Static Shell dist. fragment .... SUCCESS [0.023s]
[INFO] Embedded GlassFish Shell Jars ..................... SUCCESS [0.006s]
[INFO] JavaDB to be bundled into GlassFish ............... SUCCESS [14.587s]
[INFO] Glassfish Legal content distribution fragment ..... SUCCESS [0.049s]
[INFO] UC client bootstrap scripts distribution fragment . SUCCESS [0.022s]
[INFO] Appserver Base Bundle ............................. SUCCESS [0.022s]
[INFO] Felix Package ..................................... SUCCESS [0.166s]
[INFO] Shoal Package ..................................... SUCCESS [0.048s]
[INFO] Glassfish JavaHelp Package ........................ SUCCESS [5.395s]
[INFO] Glassfish Registration Package .................... SUCCESS [0.046s]
[INFO] Glassfish HA Package .............................. SUCCESS [0.051s]
[INFO] Glassfish Admin GUI Package ....................... SUCCESS [0.690s]
[INFO] Verifier implementation module .................... SUCCESS [5.292s]
[INFO] GlassFish Verifier Extension Bundle ............... SUCCESS [0.019s]
[INFO] Verifier scripts .................................. SUCCESS [0.034s]
[INFO] Verifier Package .................................. SUCCESS [0.187s]
[INFO] App Client - client-side modules .................. SUCCESS [0.007s]
[INFO] ACC Config Classes (JAXB) ......................... SUCCESS [29.441s]
[INFO] Appclient Security Integration .................... SUCCESS [0.831s]
[INFO] Client OSGi module (including ACC) ................ SUCCESS [15.646s]
[INFO] Client library (including ACC) .................... SUCCESS [4.568s]
[INFO] GlassFish appclient scripts ....................... SUCCESS [0.034s]
[INFO] GlassFish AppClient Server-Side Core .............. SUCCESS [4.549s]
[INFO] Glassfish Application Client Package .............. SUCCESS [0.483s]
[INFO] Java DB Package ................................... SUCCESS [1.268s]
[INFO] MQ Package ........................................ SUCCESS [1.570s]
[INFO] A Pluggable InMemory JACC Provider ................ SUCCESS [0.355s]
[INFO] Glassfish Commons for Web Profile Distribution .... SUCCESS [1.584s]
[INFO] Glassfish OSGi Support Package .................... SUCCESS [2:07.712s]
[INFO] Glassfish OSGi HTTP Service package ............... SUCCESS [3.407s]
[INFO] Console extensions for OSGi platforms ............. SUCCESS [0.008s]
[INFO] Felix Web Console Extension for GlassFish ......... SUCCESS [5.811s]
[INFO] GlassFish OSGi Console Plugin ..................... SUCCESS [0.512s]
[INFO] Glassfish OSGi Management console package ......... SUCCESS [0.130s]
[INFO] Glassfish Web Profile Incorporation Package ....... SUCCESS [0.020s]
[INFO] Glassfish Full Profile Incorporation Package ...... SUCCESS [0.026s]
[INFO] Glassfish Web Profile Metapackage ................. SUCCESS [0.018s]
[INFO] Glassfish Full Profile Metapackage ................ SUCCESS [0.017s]
[INFO] Glassfish OSGi Feature Pack Incorporation Package . SUCCESS [0.018s]
[INFO] Glassfish OSGi Feature Pack Metapackage ........... SUCCESS [0.019s]
[INFO] Ant tasks ......................................... SUCCESS [0.309s]
[INFO] GlassFish Ant Tasks Package ....................... SUCCESS [0.056s]
[INFO] GlassFish AppClient Server-Side Core l10n ......... SUCCESS [2.084s]
[INFO] Client OSGi module (including ACC) Localization ... SUCCESS [2.390s]
[INFO] Client library (including ACC) Localization ....... SUCCESS [0.121s]
[INFO] Glassfish Application Client l10n Package ......... SUCCESS [0.141s]
[INFO] Glassfish cluster l10n Package .................... SUCCESS [0.220s]
[INFO] Glassfish CMP l10n Package ........................ SUCCESS [0.167s]
[INFO] Glassfish Commons for Full Distribution l10n ...... SUCCESS [0.152s]
[INFO] Glassfish Commons l10n Package .................... SUCCESS [0.070s]
[INFO] Glassfish EJB l10n Package ........................ SUCCESS [0.070s]
[INFO] Glassfish EJB Lite Container l10n Package ......... SUCCESS [0.081s]
[INFO] Glassfish Admin GUI Localization Package .......... SUCCESS [0.453s]
[INFO] Glassfish Connector l10n Package .................. SUCCESS [0.180s]
[INFO] Glassfish JDBC l10n Package ....................... SUCCESS [0.151s]
[INFO] Glassfish Java Message Service l10n ............... SUCCESS [0.141s]
[INFO] Glassfish JPA l10n Package ........................ SUCCESS [0.031s]
[INFO] Glassfish Transaction Package l10n ................ SUCCESS [0.034s]
[INFO] Glassfish Java Transaction Service l10n ........... SUCCESS [0.051s]
[INFO] Glassfish Nucleus l10n Package .................... SUCCESS [0.439s]
[INFO] Verifier implementation module l10n ............... SUCCESS [0.391s]
[INFO] Glassfish verifier l10n Package ................... SUCCESS [0.076s]
[INFO] Glassfish Web Container l10n Package .............. SUCCESS [0.234s]
[INFO] JSR-109 implementation to deploy Metro l10n ....... SUCCESS [0.091s]
[INFO] Connector for Web Services Container l10n ......... SUCCESS [0.086s]
[INFO] WebServices Security and JSR 196 l10n ............. SUCCESS [0.095s]
[INFO] Metro l10n Package ................................ SUCCESS [0.054s]
[INFO] Glassfish Management Package l10n Package ......... SUCCESS [0.068s]
[INFO] Java EE Security Core Classes l10n ................ SUCCESS [0.147s]
[INFO] GlassFish ORB connector implementation l10n ....... SUCCESS [2.286s]
[INFO] Glassfish Commons Web l10n Package ................ SUCCESS [0.200s]
[INFO] OSGi Console Plugin for Admin Console l10n ........ SUCCESS [0.087s]
[INFO] Glassfish OSGi Management console l10n Package .... SUCCESS [0.033s]
[INFO] Registration Impl l10n ............................ SUCCESS [0.082s]
[INFO] Glassfish Registration l10n Package ............... SUCCESS [0.028s]
[INFO] Glassfish JMX Package ............................. SUCCESS [0.138s]
[INFO] Glassfish EntityBeans Container Package ........... SUCCESS [0.049s]
[INFO] JSON Package ...................................... SUCCESS [0.030s]
[INFO] Service tag registry file distribution fragment ... SUCCESS [0.015s]
[INFO] Glassfish distributions ........................... SUCCESS [0.007s]
[INFO] Glassfish Minnow Distribution ..................... SUCCESS [29.220s]
[INFO] Glassfish Web Distribution ........................ SUCCESS [32.422s]
[INFO] Glassfish Distribution ............................ SUCCESS [42.341s]
[INFO] Security Related Implementation for GlassFish ..... SUCCESS [0.050s]
[INFO] Security DOL Integration l10n ..................... SUCCESS [0.147s]
[INFO] GlassFish Tests related modules ................... SUCCESS [0.012s]
[INFO] btrace jar files .................................. SUCCESS [5.645s]
[INFO] GlassFish Flashlight Client ....................... SUCCESS [0.199s]
[INFO] Flashlight ........................................ SUCCESS [0.009s]
[INFO] glassfish-spdy .................................... SUCCESS [9.076s]
[INFO] GlassFish Project ................................. SUCCESS [0.036s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------



結構時間かかって、たまにリポジトリがオフラインで失敗しますが、成功すると以下にglassfish.zipが出来上がります。

main/appserver/distributions/glassfish/target/glassfish.zip



embedded-glassfish

ちなみに embedded-glassfish は以下で mvn install

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

で、target に glassfish-embedded-all.jar ができます。