Vinay Vishal | 5717147 | 2018-09-18 20:22:00 +0530 | [diff] [blame] | 1 | GlassFish Server |
| 2 | ================= |
| 3 | |
| 4 | GlassFish is the reference implementation of Java EE. |
| 5 | |
| 6 | Building |
| 7 | -------- |
| 8 | |
| 9 | Prerequisites: |
| 10 | |
| 11 | * JDK8+ |
| 12 | * Maven 3.0.3+ |
| 13 | |
arjantijms | 79b293d | 2020-06-09 15:17:29 +0200 | [diff] [blame^] | 14 | Currently in the master branch artifacts are being pulled from OSSRH staging. |
Steve Millidge | cc164da | 2018-11-13 08:18:45 +0000 | [diff] [blame] | 15 | |
Vinay Vishal | 5717147 | 2018-09-18 20:22:00 +0530 | [diff] [blame] | 16 | Run the full build: |
| 17 | |
Steve Millidge | cc164da | 2018-11-13 08:18:45 +0000 | [diff] [blame] | 18 | `mvn -Pstaging install` |
Vinay Vishal | 5717147 | 2018-09-18 20:22:00 +0530 | [diff] [blame] | 19 | |
| 20 | Locate the Zip distributions: |
| 21 | - appserver/distributions/glassfish/target/glassfish.zip |
| 22 | - appserver/distributions/web/target/web.zip |
| 23 | |
| 24 | Locate staged distributions: |
| 25 | - appserver/distributions/glassfish/target/stage |
| 26 | - appserver/distributions/web/target/stage |
| 27 | |
Lukas Jungmann | ee91e33 | 2018-11-13 21:02:47 +0100 | [diff] [blame] | 28 | Testing |
| 29 | -------- |
arjantijms | 79b293d | 2020-06-09 15:17:29 +0200 | [diff] [blame^] | 30 | |
| 31 | |
| 32 | Testing QuickLook directly |
| 33 | -------------------------- |
| 34 | |
Lukas Jungmann | ee91e33 | 2018-11-13 21:02:47 +0100 | [diff] [blame] | 35 | Running GlassFish QuickLook tests: |
| 36 | |
arjantijms | 3cfb3a3 | 2020-02-18 23:13:47 +0100 | [diff] [blame] | 37 | `mvn -f appserver/tests/quicklook/pom.xml test -Dglassfish.home=appserver/distributions/glassfish/target/stage/glassfish6/glassfish` |
Lukas Jungmann | ee91e33 | 2018-11-13 21:02:47 +0100 | [diff] [blame] | 38 | |
| 39 | For more details, see [QuickLook_Test_Instructions](https://github.com/eclipse-ee4j/glassfish/blob/master/appserver/tests/quicklook/QuickLook_Test_Instructions.html) |
| 40 | |
arjantijms | 79b293d | 2020-06-09 15:17:29 +0200 | [diff] [blame^] | 41 | |
| 42 | Testing Full |
| 43 | ------------ |
| 44 | |
| 45 | Build 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 | |
| 49 | This will result in: |
| 50 | |
| 51 | ``` |
| 52 | bundles |
| 53 | glassfish.zip |
| 54 | nucleus-new.zip |
| 55 | web.zip |
| 56 | ``` |
| 57 | |
| 58 | Run tests using: |
| 59 | |
| 60 | ``` |
| 61 | ./gftest [name of test] |
| 62 | ``` |
| 63 | |
| 64 | |
| 65 | Where [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 | |
| 89 | E.g. |
| 90 | |
| 91 | ``` |
| 92 | ./gftest deployment_all |
| 93 | ``` |
| 94 | |
| 95 | |
| 96 | |
| 97 | |
Vinay Vishal | 5717147 | 2018-09-18 20:22:00 +0530 | [diff] [blame] | 98 | Starting GlassFish |
| 99 | ------------------ |
| 100 | |
arjantijms | 3cfb3a3 | 2020-02-18 23:13:47 +0100 | [diff] [blame] | 101 | `glassfish6/bin/asadmin start-domain` |
Vinay Vishal | 5717147 | 2018-09-18 20:22:00 +0530 | [diff] [blame] | 102 | |
| 103 | Stopping GlassFish |
| 104 | ------------------ |
| 105 | |
arjantijms | 3cfb3a3 | 2020-02-18 23:13:47 +0100 | [diff] [blame] | 106 | `glassfish6/bin/asadmin stop-domain` |