blob: c6009c4d288cf902ac1fbed90feecfbf704fc43e [file] [log] [blame] [view]
Ivar Grimstad12e6de92020-06-29 19:24:53 +02001# Eclipse GlassFish
Vinay Vishal57171472018-09-18 20:22:00 +05302
Ivar Grimstad12e6de92020-06-29 19:24:53 +02003## About
4
5Eclipse GlassFish is a [Jakarta EE compatible implementation](compatibility)
6sponsored by the Eclipse Foundation. Eclipse GlassFish 5.1 is also Java EE 8 Compatible.
Vinay Vishal57171472018-09-18 20:22:00 +05307
8Building
9--------
10
11Prerequisites:
12
13* JDK8+
14* Maven 3.0.3+
15
arjantijms79b293d2020-06-09 15:17:29 +020016Currently in the master branch artifacts are being pulled from OSSRH staging.
Steve Millidgecc164da2018-11-13 08:18:45 +000017
Vinay Vishal57171472018-09-18 20:22:00 +053018Run the full build:
19
Steve Millidgecc164da2018-11-13 08:18:45 +000020`mvn -Pstaging install`
Vinay Vishal57171472018-09-18 20:22:00 +053021
22Locate the Zip distributions:
23- appserver/distributions/glassfish/target/glassfish.zip
24- appserver/distributions/web/target/web.zip
25
26Locate staged distributions:
27- appserver/distributions/glassfish/target/stage
28- appserver/distributions/web/target/stage
29
Lukas Jungmannee91e332018-11-13 21:02:47 +010030Testing
31--------
arjantijms79b293d2020-06-09 15:17:29 +020032
33
34Testing QuickLook directly
35--------------------------
36
Ivar Grimstad12e6de92020-06-29 19:24:53 +020037Running Eclipse GlassFish QuickLook tests:
Lukas Jungmannee91e332018-11-13 21:02:47 +010038
arjantijms3cfb3a32020-02-18 23:13:47 +010039`mvn -f appserver/tests/quicklook/pom.xml test -Dglassfish.home=appserver/distributions/glassfish/target/stage/glassfish6/glassfish`
Lukas Jungmannee91e332018-11-13 21:02:47 +010040
41For more details, see [QuickLook_Test_Instructions](https://github.com/eclipse-ee4j/glassfish/blob/master/appserver/tests/quicklook/QuickLook_Test_Instructions.html)
42
arjantijms79b293d2020-06-09 15:17:29 +020043
44Testing Full
45------------
46
Ivar Grimstad12e6de92020-06-29 19:24:53 +020047Build Eclipse GlassFish using the `gfbuild.sh` script, OR build as stated above and copy the distributions to the `bundles` folder using:
arjantijms79b293d2020-06-09 15:17:29 +020048
49`./gfbuild.sh archive_bundles`
50
51This will result in:
52
53```
54bundles
55 glassfish.zip
56 nucleus-new.zip
57 web.zip
58```
59
60Run tests using:
61
62```
63./gftest [name of test]
64```
65
66
67Where [name of test] is one or more off:
68
69```
70 "deployment_all"
71 "ejb_group_1"
72 "ejb_group_2"
73 "ejb_group_3"
74 "ejb_web_all"
75 "cdi_all"
76 "ql_gf_full_profile_all"
77 "ql_gf_nucleus_all"
78 "ql_gf_web_profile_all"
79 "nucleus_admin_all"
80 "jdbc_all"
81 "batch_all"
82 "persistence_all"
83 "connector_group_1"
84 "connector_group_2"
85 "connector_group_3"
86 "connector_group_4"
87```
88
89(note the project contains more than these tests, but they may not be up to date)
90
91E.g.
92
93```
94./gftest deployment_all
95```
96
97
98
99
Ivar Grimstad12e6de92020-06-29 19:24:53 +0200100Starting Eclipse GlassFish
Vinay Vishal57171472018-09-18 20:22:00 +0530101------------------
102
arjantijms3cfb3a32020-02-18 23:13:47 +0100103`glassfish6/bin/asadmin start-domain`
Vinay Vishal57171472018-09-18 20:22:00 +0530104
Ivar Grimstad12e6de92020-06-29 19:24:53 +0200105Stopping Eclipse GlassFish
Vinay Vishal57171472018-09-18 20:22:00 +0530106------------------
107
arjantijms3cfb3a32020-02-18 23:13:47 +0100108`glassfish6/bin/asadmin stop-domain`