Skip to content

Commit 7fc9c3c

Browse files
authored
enabling some examples for Jakarta EE 9 (#4879)
Signed-off-by: Maxim Nesen <maxim.nesen@oracle.com>
1 parent 0e70e14 commit 7fc9c3c

File tree

16 files changed

+71
-41
lines changed

16 files changed

+71
-41
lines changed

examples/bookmark-em/src/main/java/org/glassfish/jersey/examples/bookmark_em/entity/BookmarkEntityPK.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2012, 2019 Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2012, 2021 Oracle and/or its affiliates. All rights reserved.
33
*
44
* This program and the accompanying materials are made available under the
55
* terms of the Eclipse Distribution License v. 1.0, which is available at

examples/bookmark-em/src/main/java/org/glassfish/jersey/examples/bookmark_em/entity/UserEntity.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2012, 2019 Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2012, 2021 Oracle and/or its affiliates. All rights reserved.
33
*
44
* This program and the accompanying materials are made available under the
55
* terms of the Eclipse Distribution License v. 1.0, which is available at

examples/bookmark-em/src/main/java/org/glassfish/jersey/examples/bookmark_em/util/tx/Transactional.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2012, 2018 Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2012, 2021 Oracle and/or its affiliates. All rights reserved.
33
*
44
* This program and the accompanying materials are made available under the
55
* terms of the Eclipse Distribution License v. 1.0, which is available at

examples/bookmark/src/main/java/org/glassfish/jersey/examples/bookmark/entity/BookmarkEntity.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2010, 2019 Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2010, 2021 Oracle and/or its affiliates. All rights reserved.
33
*
44
* This program and the accompanying materials are made available under the
55
* terms of the Eclipse Distribution License v. 1.0, which is available at

examples/bookmark/src/main/java/org/glassfish/jersey/examples/bookmark/entity/BookmarkEntityPK.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2010, 2019 Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2010, 2021 Oracle and/or its affiliates. All rights reserved.
33
*
44
* This program and the accompanying materials are made available under the
55
* terms of the Eclipse Distribution License v. 1.0, which is available at

examples/bookmark/src/main/java/org/glassfish/jersey/examples/bookmark/entity/UserEntity.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2010, 2019 Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2010, 2021 Oracle and/or its affiliates. All rights reserved.
33
*
44
* This program and the accompanying materials are made available under the
55
* terms of the Eclipse Distribution License v. 1.0, which is available at

examples/bookmark/src/main/java/org/glassfish/jersey/examples/bookmark/util/tx/Transactional.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2010, 2018 Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2010, 2021 Oracle and/or its affiliates. All rights reserved.
33
*
44
* This program and the accompanying materials are made available under the
55
* terms of the Eclipse Distribution License v. 1.0, which is available at

examples/extended-wadl-webapp/pom.xml

Lines changed: 38 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<groupId>org.glassfish.jersey.examples</groupId>
2020
<artifactId>webapp-example-parent</artifactId>
2121
<relativePath>../webapp-example-parent/pom.xml</relativePath>
22-
<version>3.0.0-SNAPSHOT</version>
22+
<version>3.1.0-SNAPSHOT</version>
2323
</parent>
2424

2525
<artifactId>extended-wadl-webapp</artifactId>
@@ -126,7 +126,7 @@
126126
<dependency>
127127
<groupId>com.sun.xml.bind</groupId>
128128
<artifactId>jaxb-osgi</artifactId>
129-
<scope>test</scope>
129+
<!-- <scope>test</scope>-->
130130
</dependency>
131131
<dependency>
132132
<groupId>jakarta.xml.bind</groupId>
@@ -142,27 +142,49 @@
142142
<plugins>
143143
<!-- Extended Wadl Config: this plugin generates the jaxb beans from xsd schemas -->
144144
<plugin>
145-
<groupId>org.jvnet.jaxb2.maven2</groupId>
146-
<artifactId>maven-jaxb2-plugin</artifactId>
147-
<version>0.14.0</version>
145+
<groupId>org.codehaus.mojo</groupId>
146+
<artifactId>jaxb2-maven-plugin</artifactId>
147+
<version>2.5.0</version>
148148
<executions>
149149
<execution>
150-
<phase>generate-sources</phase>
150+
<id>xjc</id>
151151
<goals>
152-
<goal>generate</goal>
152+
<goal>xjc</goal>
153153
</goals>
154154
</execution>
155155
</executions>
156156
<configuration>
157-
<generatePackage>org.glassfish.jersey.examples.extendedwadl</generatePackage>
158-
<schemaDirectory>src/main/xsd</schemaDirectory>
159-
<!--<includeSchemas>-->
160-
<!--<includeSchema>**/*.xsd</includeSchema>-->
161-
<!--</includeSchemas>-->
157+
<sources>
158+
<source>src/main/xsd</source>
159+
</sources>
160+
<packageName>org.glassfish.jersey.examples.extendedwadl</packageName>
162161
<extension>true</extension>
163162
<strict>false</strict>
164163
<verbose>true</verbose>
165164
</configuration>
165+
<dependencies>
166+
<dependency>
167+
<groupId>org.glassfish.jaxb</groupId>
168+
<artifactId>jaxb-xjc</artifactId>
169+
<version>${jaxb.ri.version}</version>
170+
</dependency>
171+
<dependency>
172+
<groupId>jakarta.activation</groupId>
173+
<artifactId>jakarta.activation-api</artifactId>
174+
<version>${jakarta.activation.version}</version>
175+
</dependency>
176+
<dependency>
177+
<groupId>jakarta.xml.bind</groupId>
178+
<artifactId>jakarta.xml.bind-api</artifactId>
179+
<version>${jakarta.jaxb.api.version}</version>
180+
</dependency>
181+
<dependency>
182+
<groupId>com.sun.xml.bind</groupId>
183+
<artifactId>jaxb-impl</artifactId>
184+
<version>${jaxb.ri.version}</version>
185+
</dependency>
186+
187+
</dependencies>
166188
</plugin>
167189

168190
<!-- Extended Wadl Config: javadoc plugin generates resourcedoc.xml during the compilation using doclet.
@@ -211,7 +233,10 @@
211233
version 2.5 of the javadoc plugin which will be used
212234
by a maven version > 2.0.9 -->
213235
<useStandardDocletOptions>false</useStandardDocletOptions>
214-
<additionalparam>-output ${project.build.outputDirectory}/resourcedoc.xml</additionalparam>
236+
<additionalOptions>
237+
<additionalOption>-output ${project.build.outputDirectory}/resourcedoc.xml</additionalOption>
238+
</additionalOptions>
239+
<doclint>none</doclint>
215240
</configuration>
216241
</plugin>
217242
<plugin>

examples/oauth-client-twitter/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<parent>
1616
<artifactId>project</artifactId>
1717
<groupId>org.glassfish.jersey.examples</groupId>
18-
<version>3.0.0-SNAPSHOT</version>
18+
<version>3.1.0-SNAPSHOT</version>
1919
</parent>
2020
<modelVersion>4.0.0</modelVersion>
2121

examples/osgi-helloworld-webapp/war-bundle/pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,9 @@
5555
<scope>provided</scope>
5656
</dependency>
5757
<dependency>
58-
<groupId>javax.servlet</groupId>
59-
<artifactId>servlet-api</artifactId>
60-
<version>2.5</version><!-- the current project's ${servlet2.version} is 2.4 and that's not enough -->
58+
<groupId>jakarta.servlet</groupId>
59+
<artifactId>jakarta.servlet-api</artifactId>
60+
<version>${servlet5.version}</version><!-- the current project's ${servlet2.version} is 2.4 and that's not enough -->
6161
<scope>provided</scope>
6262
</dependency>
6363

0 commit comments

Comments
 (0)