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