Skip to content
This repository was archived by the owner on Oct 14, 2020. It is now read-only.

Commit 2ad6178

Browse files
committed
Support for jakarta EE8
Signed-off-by: Mike Andrasak <andrasak@us.ibm.com>
1 parent 6a10a7a commit 2ad6178

File tree

10 files changed

+531
-15
lines changed

10 files changed

+531
-15
lines changed
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!-- Copyright (c) 2019 IBM Corporation and others. All rights reserved.
3+
This program and the accompanying materials are made available under the
4+
terms of the Eclipse Public License v1.0 which accompanies this distribution,
5+
and is available at http://www.eclipse.org/legal/epl-v10.html Contributors:
6+
IBM Corporation - initial API and implementation -->
7+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
8+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
9+
<modelVersion>4.0.0</modelVersion>
10+
11+
<parent>
12+
<groupId>org.microshed.boost</groupId>
13+
<artifactId>boost-boms</artifactId>
14+
<version>0.2.2-SNAPSHOT</version>
15+
</parent>
16+
17+
<groupId>org.microshed.boost.boms</groupId>
18+
<artifactId>boost-jakarta-ee8-apis-bom</artifactId>
19+
<packaging>pom</packaging>
20+
21+
<description>Boost Jakarta EE8 APIs BOM</description>
22+
23+
<dependencyManagement>
24+
<dependencies>
25+
<!-- jaxrs -->
26+
<dependency>
27+
<groupId>jakarta.ws.rs</groupId>
28+
<artifactId>jakarta.ws.rs-api</artifactId>
29+
<version>2.1.6</version>
30+
</dependency>
31+
<!-- jpa -->
32+
<dependency>
33+
<groupId>jakarta.persistence</groupId>
34+
<artifactId>jakarta.persistence-api</artifactId>
35+
<version>2.2.3</version>
36+
</dependency>
37+
<dependency>
38+
<groupId>jakarta.transaction</groupId>
39+
<artifactId>jakarta.transaction-api</artifactId>
40+
<version>1.3.3</version>
41+
</dependency>
42+
<dependency>
43+
<groupId>jakarta.enterprise</groupId>
44+
<artifactId>jakarta.enterprise.cdi-api</artifactId>
45+
<version>2.0.2</version>
46+
</dependency>
47+
<dependency>
48+
<groupId>jakarta.json</groupId>
49+
<artifactId>jakarta.json-api</artifactId>
50+
<version>1.1.6</version>
51+
</dependency>
52+
<dependency>
53+
<groupId>jakarta.json.bind</groupId>
54+
<artifactId>jakarta.json.bind-api</artifactId>
55+
<version>1.0.2</version>
56+
</dependency>
57+
<dependency>
58+
<groupId>jakarta.validation</groupId>
59+
<artifactId>jakarta.validation-api</artifactId>
60+
<version>2.0.2</version>
61+
</dependency>
62+
</dependencies>
63+
</dependencyManagement>
64+
</project>
Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
<!-- Copyright (c) 2019 IBM Corporation and others. All rights reserved.
2+
This program and the accompanying materials are made available under the
3+
terms of the Eclipse Public License v1.0 which accompanies this distribution,
4+
and is available at http://www.eclipse.org/legal/epl-v10.html Contributors:
5+
IBM Corporation - initial API and implementation -->
6+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
7+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
8+
<modelVersion>4.0.0</modelVersion>
9+
10+
<parent>
11+
<groupId>org.microshed.boost</groupId>
12+
<artifactId>boost-boms</artifactId>
13+
<version>0.2.2-SNAPSHOT</version>
14+
</parent>
15+
16+
<groupId>org.microshed.boost.boms</groupId>
17+
<artifactId>jakarta-ee8-bom</artifactId>
18+
<packaging>pom</packaging>
19+
20+
<description>Booster Jakarta EE8 Feature Bom</description>
21+
22+
<dependencyManagement>
23+
<dependencies>
24+
<dependency>
25+
<groupId>org.microshed.boost.boms</groupId>
26+
<artifactId>boost-jakarta-ee8-apis-bom</artifactId>
27+
<version>0.2.2-SNAPSHOT</version>
28+
<scope>import</scope>
29+
<type>pom</type>
30+
</dependency>
31+
<dependency>
32+
<groupId>org.microshed.boost.boms</groupId>
33+
<artifactId>runtimes-bom</artifactId>
34+
<version>0.2.2-SNAPSHOT</version>
35+
<scope>import</scope>
36+
<type>pom</type>
37+
</dependency>
38+
<dependency>
39+
<groupId>org.microshed.boost.boosters</groupId>
40+
<artifactId>jaxrs</artifactId>
41+
<!-- Booster version distinct from the BOM, boost-maven-plugin
42+
version -->
43+
<!-- Could also use 7.0, 8.0 for EE7, 8 -->
44+
<!-- Probably will be 1.0 for initial GA -->
45+
<version>2.1-0.2.2-SNAPSHOT</version>
46+
<scope>provided</scope>
47+
</dependency>
48+
<dependency>
49+
<groupId>org.microshed.boost.boosters</groupId>
50+
<artifactId>jdbc</artifactId>
51+
<version>0.2.2-SNAPSHOT</version>
52+
<scope>provided</scope>
53+
</dependency>
54+
<dependency>
55+
<groupId>org.microshed.boost.boosters</groupId>
56+
<artifactId>jpa</artifactId>
57+
<version>2.2-0.2.2-SNAPSHOT</version>
58+
<scope>provided</scope>
59+
</dependency>
60+
<dependency>
61+
<groupId>org.microshed.boost.boosters</groupId>
62+
<artifactId>cdi</artifactId>
63+
<version>2.0-0.2.2-SNAPSHOT</version>
64+
<scope>provided</scope>
65+
</dependency>
66+
<dependency>
67+
<groupId>org.microshed.boost.boosters</groupId>
68+
<artifactId>jsonp</artifactId>
69+
<version>1.1-0.2.2-SNAPSHOT</version>
70+
<scope>provided</scope>
71+
</dependency>
72+
<dependency>
73+
<groupId>org.microshed.boost.boosters</groupId>
74+
<artifactId>bean-validation</artifactId>
75+
<version>2.0-0.2.2-SNAPSHOT</version>
76+
<scope>provided</scope>
77+
</dependency>
78+
</dependencies>
79+
</dependencyManagement>
80+
</project>

boost-maven/boost-boms/pom.xml

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -17,21 +17,23 @@
1717
<packaging>pom</packaging>
1818

1919
<modules>
20-
<module>boost-ee7-apis-bom</module>
21-
<module>booster-ee7-bom</module>
22-
<module>boost-ee8-apis-bom</module>
23-
<module>booster-ee8-bom</module>
24-
<module>booster-mp14-bom</module>
25-
<module>booster-mp20-bom</module>
26-
<module>booster-mp21-bom</module>
27-
<module>booster-mp22-bom</module>
28-
<module>booster-mp30-bom</module>
29-
<module>boost-mp14-apis-bom</module>
30-
<module>boost-mp20-apis-bom</module>
31-
<module>boost-mp21-apis-bom</module>
32-
<module>boost-mp22-apis-bom</module>
33-
<module>boost-mp30-apis-bom</module>
34-
<module>booster-runtimes-bom</module>
20+
<module>boost-ee7-apis-bom</module>
21+
<module>booster-ee7-bom</module>
22+
<module>boost-ee8-apis-bom</module>
23+
<module>booster-ee8-bom</module>
24+
<module>booster-mp14-bom</module>
25+
<module>booster-mp20-bom</module>
26+
<module>booster-mp21-bom</module>
27+
<module>booster-mp22-bom</module>
28+
<module>booster-mp30-bom</module>
29+
<module>boost-mp14-apis-bom</module>
30+
<module>boost-mp20-apis-bom</module>
31+
<module>boost-mp21-apis-bom</module>
32+
<module>boost-mp22-apis-bom</module>
33+
<module>boost-mp30-apis-bom</module>
34+
<module>booster-runtimes-bom</module>
35+
<module>booster-jakarta-ee8-bom</module>
36+
<module>boost-jakarta-ee8-apis-bom</module>
3537
</modules>
3638

3739
</project>
Lines changed: 159 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,159 @@
1+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
3+
<modelVersion>4.0.0</modelVersion>
4+
5+
<groupId>org.microshed.boost</groupId>
6+
<artifactId>jakarta-test-jaxrs-2.1</artifactId>
7+
<packaging>war</packaging>
8+
<version>1.0-SNAPSHOT</version>
9+
10+
<properties>
11+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
12+
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
13+
<maven.compiler.source>1.8</maven.compiler.source>
14+
<maven.compiler.target>1.8</maven.compiler.target>
15+
</properties>
16+
17+
<pluginRepositories>
18+
<!-- Configure Sonatype OSS Maven snapshots repository -->
19+
<pluginRepository>
20+
<id>sonatype-nexus-snapshots</id>
21+
<name>Sonatype Nexus Snapshots</name>
22+
<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
23+
<snapshots>
24+
<enabled>true</enabled>
25+
</snapshots>
26+
<releases>
27+
<enabled>false</enabled>
28+
</releases>
29+
</pluginRepository>
30+
</pluginRepositories>
31+
32+
<dependencyManagement>
33+
<dependencies>
34+
<dependency>
35+
<groupId>org.microshed.boost.boms</groupId>
36+
<artifactId>jakarta-ee8-bom</artifactId>
37+
<version>@pom.version@</version>
38+
<scope>import</scope>
39+
<type>pom</type>
40+
</dependency>
41+
</dependencies>
42+
</dependencyManagement>
43+
44+
<dependencies>
45+
<dependency>
46+
<groupId>org.microshed.boost.boosters</groupId>
47+
<artifactId>jaxrs</artifactId>
48+
</dependency>
49+
<dependency>
50+
<groupId>org.microshed.boost.boosters</groupId>
51+
<artifactId>bean-validation</artifactId>
52+
</dependency>
53+
<dependency>
54+
<groupId>junit</groupId>
55+
<artifactId>junit</artifactId>
56+
<version>4.12</version>
57+
<scope>test</scope>
58+
</dependency>
59+
<dependency>
60+
<groupId>commons-httpclient</groupId>
61+
<artifactId>commons-httpclient</artifactId>
62+
<version>3.1</version>
63+
<scope>test</scope>
64+
</dependency>
65+
</dependencies>
66+
67+
<build>
68+
<plugins>
69+
<plugin>
70+
<groupId>org.microshed.boost</groupId>
71+
<artifactId>boost-maven-plugin</artifactId>
72+
<version>@pom.version@</version>
73+
<executions>
74+
<execution>
75+
<goals>
76+
<goal>package</goal>
77+
</goals>
78+
</execution>
79+
<execution>
80+
<id>test-start-server</id>
81+
<phase>pre-integration-test</phase>
82+
<goals>
83+
<goal>start</goal>
84+
</goals>
85+
</execution>
86+
<execution>
87+
<id>test-stop-server</id>
88+
<phase>post-integration-test</phase>
89+
<goals>
90+
<goal>stop</goal>
91+
</goals>
92+
</execution>
93+
</executions>
94+
</plugin>
95+
<plugin>
96+
<groupId>org.apache.maven.plugins</groupId>
97+
<artifactId>maven-failsafe-plugin</artifactId>
98+
<version>2.22.1</version>
99+
<executions>
100+
<execution>
101+
<goals>
102+
<goal>integration-test</goal>
103+
<goal>verify</goal>
104+
</goals>
105+
</execution>
106+
</executions>
107+
</plugin>
108+
</plugins>
109+
</build>
110+
111+
<profiles>
112+
<profile>
113+
<id>ol</id>
114+
<activation>
115+
<property>
116+
<name>boostRuntime</name>
117+
<value>ol</value>
118+
</property>
119+
</activation>
120+
<dependencies>
121+
<dependency>
122+
<groupId>org.microshed.boost.runtimes</groupId>
123+
<artifactId>openliberty</artifactId>
124+
</dependency>
125+
</dependencies>
126+
</profile>
127+
<profile>
128+
<id>wlp</id>
129+
<activation>
130+
<property>
131+
<name>boostRuntime</name>
132+
<value>wlp</value>
133+
</property>
134+
</activation>
135+
<dependencies>
136+
<dependency>
137+
<groupId>org.microshed.boost.runtimes</groupId>
138+
<artifactId>wlp</artifactId>
139+
</dependency>
140+
</dependencies>
141+
</profile>
142+
<profile>
143+
<id>tomee</id>
144+
<activation>
145+
<property>
146+
<name>boostRuntime</name>
147+
<value>tomee</value>
148+
</property>
149+
</activation>
150+
<dependencies>
151+
<dependency>
152+
<groupId>org.microshed.boost.runtimes</groupId>
153+
<artifactId>tomee</artifactId>
154+
</dependency>
155+
</dependencies>
156+
</profile>
157+
</profiles>
158+
159+
</project>
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
package com.example;
2+
3+
import java.io.IOException;
4+
import java.util.Set;
5+
6+
import javax.ws.rs.GET;
7+
import javax.ws.rs.Path;
8+
import javax.ws.rs.PathParam;
9+
import javax.ws.rs.Produces;
10+
import javax.validation.constraints.Size;
11+
12+
//import com.ibm.json.java.JSON;
13+
//import com.ibm.json.java.JSONArray;
14+
//import com.ibm.json.java.JSONObject;
15+
16+
// This class define the RESTful API to fetch the database service information
17+
// <basepath>/api/hello
18+
19+
@Path("/hello")
20+
public class HelloResource {
21+
22+
@GET
23+
@Path("/hello")
24+
@Produces("text/plain")
25+
public String getInformation() throws Exception, IOException {
26+
return "Hello World From Your Friends at Liberty Boost EE!";
27+
}
28+
29+
@GET
30+
@Path("/{dataIn}")
31+
@Produces("text/plain")
32+
public String getInformationWithString(@PathParam("dataIn") @Size(min = 2, max = 10) String dataIn)
33+
throws Exception, IOException {
34+
return ("Hello World From Your Friends at Liberty Boost EE! Your passed in string data is: " + dataIn);
35+
}
36+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Manifest-Version: 1.0
2+
Class-Path:
3+

0 commit comments

Comments
 (0)