tree: abbb62c0f873054eb687f91cc0eb0ea6d7169285 [path history] [tgz]
  1. .github/
  2. appserver/
  3. docs/
  4. etc/
  5. nucleus/
  6. qa/
  7. snapshots/
  8. .gitignore
  9. .lgtm.yml
  10. CONTRIBUTING.md
  11. gfbuild.sh
  12. gftest.sh
  13. Jenkinsfile
  14. LICENSE.md
  15. NOTICE.md
  16. pom.xml
  17. README.md
  18. runtests.sh
  19. updateVersion.sh
  20. validateJars.sh
README.md

Eclipse GlassFish

About

Eclipse GlassFish is a Jakarta EE compatible implementation sponsored by the Eclipse Foundation.

Compatibility

  • Eclipse GlassFish 7.0.0 is Jakarta EE 10 compatible, requires Java 11, supports Java 18
  • Eclipse GlassFish 6.2.0 is Jakarta EE 9.1 compatible, requires Java 11, supports Java 17
  • Eclipse GlassFish 6.1.0 is Jakarta EE 9.1 compatible, requires Java 11
  • Eclipse GlassFish 6.0.0 is Jakarta EE 9 compatible, requires Java 8
  • Eclipse GlassFish 5.1.0 is Java EE 8 and Jakarta EE 8 compatible, requires Java 8

Distribution

The Zip distributions can be found on following paths:

  • appserver/distributions/glassfish/target/glassfish.zip (Full Profile)
  • appserver/distributions/web/target/web.zip (Web Profile)

Building

Prerequisites

  • JDK11+
  • Maven 3.5.4+

Execution

:warning: Because GF7 is now in intensive development and depends on external snapshot dependencies, you have to build these dependencies first: mvn clean install -f ./snapshots/pom.xml

  • mvn clean install - Full build including automatic QA and maven managed tests. Typical time: 5 minutes.
  • mvn clean install -Pfast - Building all distribution artifacts, running just unit tests, QA and integration tests excluded. Typical time: 3 minutes.
  • mvn clean install -Pfastest - Building all distribution artifacts, excluded all QA and testing. Typical time: 1.5 minutes.

You can use also some maven optimizations, ie. using -T4C to allow parallel build.

Special Profiles

  • staging - In some development stages may happen that some dependencies are available just in OSSRH staging repository. Then you have to use this profile, which is not enabled by default.
  • jacoco - enables the JaCoCo agent in tests, so you can import it's output to you editor, ie. Eclipse, and see the code coverage.
  • jacoco-merge - merges all JaCoCo output files found in subdirectories and merges them into one. It is useful to see code which wasn't even touched by tests.

Special Scripts

  • ./updateVersion.sh 6.99.99.experimental - useful for custom distributions, so you can avoid conflicts with version in master branch.
  • ./runTests.sh 6.2.0 cdi_all - useful to run additional tests locally; before that edit the script and update variables so they will reflect your environment.
  • ./validateJars.sh - uses the bnd command to check OSGI dependencies in all target directories

Additional Testing

After building the GlassFish distribution artifacts you can execute also additional tests managed by bash scripts. They are quite old and have high technical debt, but at this moment they still provide useful service.

QuickLook

mvn -f appserver/tests/quicklook/pom.xml test -Dglassfish.home=$(pwd)/appserver/distributions/glassfish/target/stage/glassfish7/glassfish

Old Additional Tests

:warning: if the script fails, sometimes it doesn't stop the domain and you have to do that manually.

  • ./runTests.sh 7.0.0 batch_all - Usual time: 4 minutes
  • ./runTests.sh 7.0.0 cdi_all - Usual time: 6 minutes
  • ./runTests.sh 7.0.0 connector_group_1 - Usual time: 16 minutes
  • ./runTests.sh 7.0.0 connector_group_2 - Usual time: 3 minutes
  • ./runTests.sh 7.0.0 connector_group_3 - Usual time: 4 minutes
  • ./runTests.sh 7.0.0 connector_group_4 - Usual time: 16 minutes
  • ./runTests.sh 7.0.0 deployment_all - Not fixed yet
  • ./runTests.sh 7.0.0 ejb_group_1 - Usual time: 10 minutes
  • ./runTests.sh 7.0.0 ejb_group_2 - Usual time: 7 minutes
  • ./runTests.sh 7.0.0 ejb_group_3 - Usual time: 18 minutes
  • ./runTests.sh 7.0.0 ejb_group_embedded - Usual time: 4 minutes
  • ./runTests.sh 7.0.0 jdbc_all - Usual time: 20 minutes
  • ./runTests.sh 7.0.0 persistence_all - Usual time: 3 minutes
  • ./runTests.sh 7.0.0 web_jsp - Usual time: 8 minutes
  • ./gfbuild.sh archive_bundles && ./gftest.sh ejb_web_all - Usual time: 4 minutes
  • ./gfbuild.sh archive_bundles && ./gftest.sh nucleus_admin_all - Not fixed yet
  • ./gfbuild.sh archive_bundles && ./gftest.sh ql_gf_full_profile_all - Usual time: 4 minutes
  • ./gfbuild.sh archive_bundles && ./gftest.sh ql_gf_nucleus_all - Not fixed yet
  • ./gfbuild.sh archive_bundles && ./gftest.sh ql_gf_web_profile_all - Usual time: 2 minutes
  • There are many tests under appserver/tests subdirectories; they are still waiting for someone's attention.

Basic Usage

  • Starting Eclipse GlassFish: glassfish7/bin/asadmin start-domain
  • Visit http://localhost:4848
  • Stopping Eclipse GlassFish: glassfish7/bin/asadmin stop-domain

Professional Services and Enterprise Support

This section is dedicated to companies offering products and services around Eclipse GlassFish.

The Eclipse GlassFish project does not endorse or recommend any of the companies on this page. We love all our supporters equally.

Professional Services and Enterprise support are available through following companies: