/
README
28 lines (21 loc) · 1.59 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
The pom.xml in this folder can be used to run the Jakarta REST Standalone TCK
against Glassfish 6.1.0+ (with Java SE 11+ compatability)
also using https://github.com/jakartaee/rest/tree/master/jersey-tck
Below are the instructions to run the Jakarta REST TCK that is built from
https://github.com/jakartaee/rest repository.
1. Install Java11+ , set JAVAHOME
2. Install Maven 3.6+ set M2_HOME
3. SET PATH : add /glassfish6/glassfish/bin as to start the glassfish domain in some environments,
add M2_HOME/bin, JAVA_HOME/bin
eg: export PATH=$ANT_HOME/bin:$M2_HOME/bin:$JAVA_HOME/bin:<path to current directory>/target/glassfish6/glassfish/bin:$PATH
4. Download the latest Eclipse Jakarta REST TCK zip bundle that contains the tck jar.
(If the jar is available from maven this step is not required as it will be resolved when dependencies are downloaded)
4a. Unzip the jakarta-restful-ws-tck-3.1.0.zip to extract the tck jar jakarta-restful-ws-tck-3.1.0.jar
4b. Install the tck jar jakarta-restful-ws-tck-3.1.0.jar using below mvn install command:
mvn install:install-file -DcreateChecksum=true -Dpackaging=jar -Dfile=$WORKSPACE/jakarta-restful-ws-tck-3.1.0.jar -DgroupId=jakarta.ws.rs -DartifactId=jakarta-restful-ws-tck -Dversion=3.1.0
5. Clone the rest repo to use rest/jersey-tck/ folder with necessary files to run the REST TCK.
-git clone https://github.com/jakartaee/rest
Replace the pom.xml in rest/jersey-tck/ directory with the pom.xml in this folder.
-Copy https://github.com/eclipse-ee4j/jakartaee-tck/blob/master/docker/jaxrstck/pom.xml
-cp pom.xml rest/jersey-tck/
6. cd rest/jersey-tck ; mvn clean verify