Coder Social home page Coder Social logo

mz1999 / glassfish Goto Github PK

View Code? Open in Web Editor NEW

This project forked from eclipse-ee4j/glassfish

0.0 0.0 0.0 71.15 MB

Eclipse GlassFish

Home Page: https://eclipse-ee4j.github.io/glassfish/

Shell 0.50% JavaScript 0.19% Ruby 0.01% C++ 0.14% Python 0.02% PHP 0.12% Emacs Lisp 0.01% Java 93.30% Groovy 0.01% XSLT 0.03% CSS 0.37% GAP 0.46% SourcePawn 0.03% Makefile 0.02% HTML 4.74% Brainfuck 0.01% SQLPL 0.01% PLSQL 0.01% Batchfile 0.03% Dockerfile 0.01%

glassfish's Introduction

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 17 and Java 21
  • 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+, we strongly recommend using JDK17 to build GlassFish with all features.
  • Maven 3.9.0+

Execution

  • mvn clean install - Full build including documentation, automatic QA and maven managed tests. Excludes just Ant and TCK tests. Typical time: 15 minutes.
  • mvn clean install -Pqa - Building all distribution artifacts, running QA and all maven managed tests. Excludes Ant, TCK and documentation. Typical time: 10 minutes.
  • mvn clean install -Pfast - Building all distribution artifacts, running just unit tests. Excludes QA, integration tests, Ant, TCK and documentation. Typical time: 7 minutes.
  • mvn clean install -Pfastest -T4C - Building all distribution artifacts as fast as possible. Excludes everything not serving this purpose. Typical time: 1.5 minutes.

You can use also some maven optimizations, see Maven documentation. Especially -am, -amd, -f, -pl, -rf and their combinations are useful.

If you want to see more logs you can use the -Dtest.logLevel=FINEST option set to an appropriate log level. Note that this applies just for tests which are executed by Maven and which use the GlassFish Java Util Logging Extension (GJULE).

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 [testBlockName] [?glassfishVersion] - useful to run old additional tests locally
  • ./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

⚠️ If the script fails, sometimes it doesn't stop the domain and you have to do that manually.

⚠️ Some of the scripts do inplace filtering or generate other sources which remain and later affect next executions. You have to remove those changes manually.

  • ./runtests.sh batch_all - Usual time: 1 minute

  • ./runtests.sh cdi_all - Usual time: 6 minutes

  • ./runtests.sh connector_group_1 - Usual time: 16 minutes

  • ./runtests.sh connector_group_2 - Usual time: 3 minutes

  • ./runtests.sh connector_group_3 - Usual time: 4 minutes

  • ./runtests.sh connector_group_4 - Usual time: 16 minutes

  • ./runtests.sh deployment_all - Usual time: 8 minutes

  • ./runtests.sh ejb_group_1 - Usual time: 10 minutes

  • ./runtests.sh ejb_group_2 - Usual time: 7 minutes

  • ./runtests.sh ejb_group_3 - Usual time: 18 minutes

  • ./runtests.sh ejb_group_embedded - Usual time: 4 minutes

  • ./runtests.sh ejb_group_all - Usual time: 4 minutes

  • ./runtests.sh jdbc_all - Usual time: 20 minutes

  • ./runtests.sh naming_all - Usual time: 2 minutes

  • ./runtests.sh persistence_all - Usual time: 3 minutes

  • ./runtests.sh security_all - Usual time: 8 minutes

  • ./runtests.sh web_jsp - Usual time: 8 minutes

  • ./runtests.sh webservice_all - Usual time: 10 minutes

  • ./gfbuild.sh archive_bundles && ./gftest.sh ejb_web_all - Usual time: 4 minutes

  • ./gfbuild.sh archive_bundles && ./gftest.sh ql_gf_web_profile_all - Usual time: 2 minutes

  • ./gfbuild.sh archive_bundles && ./gftest.sh ql_gf_full_profile_all - Usual time: 4 minutes

  • 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:

glassfish's People

Contributors

arjantijms avatar dmatej avatar smillidge avatar avpinchuk avatar pzygielo avatar ondromih avatar hs536 avatar jgauravgupta avatar lukasj avatar edbratt avatar kaido207 avatar gerdogdu avatar glassfish-bot avatar hussainnm avatar cousjava avatar mattgill98 avatar 11rx4f avatar bshannon avatar romain-grecourt avatar jansupol avatar gurunrao avatar vinayvishal avatar jayasheelankumar avatar tomjenkinson avatar dependabot[bot] avatar senivam avatar ivargrimstad avatar rohitkumarjain avatar starksm64 avatar pandrex247 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.