blob: a8bd18e0bb8ec52595db2a138b045463744cfa81 [file] [log] [blame] [view]
Vinay Vishal57171472018-09-18 20:22:00 +05301GlassFish Server
2=================
3
4GlassFish is the reference implementation of Java EE.
5
6Building
7--------
8
9Prerequisites:
10
11* JDK8+
12* Maven 3.0.3+
13
arjantijms79b293d2020-06-09 15:17:29 +020014Currently in the master branch artifacts are being pulled from OSSRH staging.
Steve Millidgecc164da2018-11-13 08:18:45 +000015
Vinay Vishal57171472018-09-18 20:22:00 +053016Run the full build:
17
Steve Millidgecc164da2018-11-13 08:18:45 +000018`mvn -Pstaging install`
Vinay Vishal57171472018-09-18 20:22:00 +053019
20Locate the Zip distributions:
21- appserver/distributions/glassfish/target/glassfish.zip
22- appserver/distributions/web/target/web.zip
23
24Locate staged distributions:
25- appserver/distributions/glassfish/target/stage
26- appserver/distributions/web/target/stage
27
Lukas Jungmannee91e332018-11-13 21:02:47 +010028Testing
29--------
arjantijms79b293d2020-06-09 15:17:29 +020030
31
32Testing QuickLook directly
33--------------------------
34
Lukas Jungmannee91e332018-11-13 21:02:47 +010035Running GlassFish QuickLook tests:
36
arjantijms3cfb3a32020-02-18 23:13:47 +010037`mvn -f appserver/tests/quicklook/pom.xml test -Dglassfish.home=appserver/distributions/glassfish/target/stage/glassfish6/glassfish`
Lukas Jungmannee91e332018-11-13 21:02:47 +010038
39For more details, see [QuickLook_Test_Instructions](https://github.com/eclipse-ee4j/glassfish/blob/master/appserver/tests/quicklook/QuickLook_Test_Instructions.html)
40
arjantijms79b293d2020-06-09 15:17:29 +020041
42Testing Full
43------------
44
45Build GlassFish using the `gfbuild.sh` script, OR build as stated above and copy the distributions to the `bundles` folder using:
46
47`./gfbuild.sh archive_bundles`
48
49This will result in:
50
51```
52bundles
53 glassfish.zip
54 nucleus-new.zip
55 web.zip
56```
57
58Run tests using:
59
60```
61./gftest [name of test]
62```
63
64
65Where [name of test] is one or more off:
66
67```
68 "deployment_all"
69 "ejb_group_1"
70 "ejb_group_2"
71 "ejb_group_3"
72 "ejb_web_all"
73 "cdi_all"
74 "ql_gf_full_profile_all"
75 "ql_gf_nucleus_all"
76 "ql_gf_web_profile_all"
77 "nucleus_admin_all"
78 "jdbc_all"
79 "batch_all"
80 "persistence_all"
81 "connector_group_1"
82 "connector_group_2"
83 "connector_group_3"
84 "connector_group_4"
85```
86
87(note the project contains more than these tests, but they may not be up to date)
88
89E.g.
90
91```
92./gftest deployment_all
93```
94
95
96
97
Vinay Vishal57171472018-09-18 20:22:00 +053098Starting GlassFish
99------------------
100
arjantijms3cfb3a32020-02-18 23:13:47 +0100101`glassfish6/bin/asadmin start-domain`
Vinay Vishal57171472018-09-18 20:22:00 +0530102
103Stopping GlassFish
104------------------
105
arjantijms3cfb3a32020-02-18 23:13:47 +0100106`glassfish6/bin/asadmin stop-domain`