Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

enabling some examples for Jakarta EE 9 #4879

Merged
merged 6 commits into from
Oct 7, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2012, 2019 Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2012, 2021 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Distribution License v. 1.0, which is available at
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2012, 2019 Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2012, 2021 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Distribution License v. 1.0, which is available at
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2012, 2018 Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2012, 2021 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Distribution License v. 1.0, which is available at
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2010, 2019 Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2010, 2021 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Distribution License v. 1.0, which is available at
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2010, 2019 Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2010, 2021 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Distribution License v. 1.0, which is available at
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2010, 2019 Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2010, 2021 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Distribution License v. 1.0, which is available at
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2010, 2018 Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2010, 2021 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Distribution License v. 1.0, which is available at
Expand Down
51 changes: 38 additions & 13 deletions examples/extended-wadl-webapp/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<groupId>org.glassfish.jersey.examples</groupId>
<artifactId>webapp-example-parent</artifactId>
<relativePath>../webapp-example-parent/pom.xml</relativePath>
<version>3.0.0-SNAPSHOT</version>
<version>3.1.0-SNAPSHOT</version>
</parent>

<artifactId>extended-wadl-webapp</artifactId>
Expand Down Expand Up @@ -126,7 +126,7 @@
<dependency>
<groupId>com.sun.xml.bind</groupId>
<artifactId>jaxb-osgi</artifactId>
<scope>test</scope>
<!-- <scope>test</scope>-->
</dependency>
<dependency>
<groupId>jakarta.xml.bind</groupId>
Expand All @@ -142,27 +142,49 @@
<plugins>
<!-- Extended Wadl Config: this plugin generates the jaxb beans from xsd schemas -->
<plugin>
<groupId>org.jvnet.jaxb2.maven2</groupId>
<artifactId>maven-jaxb2-plugin</artifactId>
<version>0.14.0</version>
<groupId>org.codehaus.mojo</groupId>
<artifactId>jaxb2-maven-plugin</artifactId>
<version>2.5.0</version>
<executions>
<execution>
<phase>generate-sources</phase>
<id>xjc</id>
<goals>
<goal>generate</goal>
<goal>xjc</goal>
</goals>
</execution>
</executions>
<configuration>
<generatePackage>org.glassfish.jersey.examples.extendedwadl</generatePackage>
<schemaDirectory>src/main/xsd</schemaDirectory>
<!--<includeSchemas>-->
<!--<includeSchema>**/*.xsd</includeSchema>-->
<!--</includeSchemas>-->
<sources>
<source>src/main/xsd</source>
</sources>
<packageName>org.glassfish.jersey.examples.extendedwadl</packageName>
<extension>true</extension>
<strict>false</strict>
<verbose>true</verbose>
</configuration>
<dependencies>
<dependency>
<groupId>org.glassfish.jaxb</groupId>
<artifactId>jaxb-xjc</artifactId>
<version>${jaxb.ri.version}</version>
</dependency>
<dependency>
<groupId>jakarta.activation</groupId>
<artifactId>jakarta.activation-api</artifactId>
<version>${jakarta.activation.version}</version>
</dependency>
<dependency>
<groupId>jakarta.xml.bind</groupId>
<artifactId>jakarta.xml.bind-api</artifactId>
<version>${jakarta.jaxb.api.version}</version>
</dependency>
<dependency>
<groupId>com.sun.xml.bind</groupId>
<artifactId>jaxb-impl</artifactId>
<version>${jaxb.ri.version}</version>
</dependency>

</dependencies>
</plugin>

<!-- Extended Wadl Config: javadoc plugin generates resourcedoc.xml during the compilation using doclet.
Expand Down Expand Up @@ -211,7 +233,10 @@
version 2.5 of the javadoc plugin which will be used
by a maven version > 2.0.9 -->
<useStandardDocletOptions>false</useStandardDocletOptions>
<additionalparam>-output ${project.build.outputDirectory}/resourcedoc.xml</additionalparam>
<additionalOptions>
<additionalOption>-output ${project.build.outputDirectory}/resourcedoc.xml</additionalOption>
</additionalOptions>
<doclint>none</doclint>
</configuration>
</plugin>
<plugin>
Expand Down
2 changes: 1 addition & 1 deletion examples/oauth-client-twitter/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<parent>
<artifactId>project</artifactId>
<groupId>org.glassfish.jersey.examples</groupId>
<version>3.0.0-SNAPSHOT</version>
<version>3.1.0-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
6 changes: 3 additions & 3 deletions examples/osgi-helloworld-webapp/war-bundle/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@
<scope>provided</scope>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>servlet-api</artifactId>
<version>2.5</version><!-- the current project's ${servlet2.version} is 2.4 and that's not enough -->
<groupId>jakarta.servlet</groupId>
<artifactId>jakarta.servlet-api</artifactId>
<version>${servlet5.version}</version><!-- the current project's ${servlet2.version} is 2.4 and that's not enough -->
<scope>provided</scope>
</dependency>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2010, 2019 Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2010, 2021 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Distribution License v. 1.0, which is available at
Expand Down
11 changes: 8 additions & 3 deletions examples/osgi-http-service/bundle/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<parent>
<groupId>org.glassfish.jersey.examples</groupId>
<artifactId>osgi-http-service</artifactId>
<version>3.0.0-SNAPSHOT</version>
<version>3.1.0-SNAPSHOT</version>
</parent>

<groupId>org.glassfish.jersey.examples.osgi-http-service</groupId>
Expand All @@ -33,6 +33,11 @@
<groupId>jakarta.ws.rs</groupId>
<artifactId>jakarta.ws.rs-api</artifactId>
</dependency>
<dependency>
<groupId>jakarta.servlet</groupId>
<artifactId>jakarta.servlet-api</artifactId>
<version>${servlet5.version}</version>
</dependency>
<dependency>
<groupId>org.glassfish.jersey.containers</groupId>
<artifactId>jersey-container-servlet-core</artifactId>
Expand All @@ -44,7 +49,7 @@
<dependency>
<groupId>org.apache.felix</groupId>
<artifactId>org.apache.felix.http.bundle</artifactId>
<version>2.2.0</version>
<version>3.0.0</version>
</dependency>
<dependency>
<groupId>org.apache.felix</groupId>
Expand All @@ -67,7 +72,7 @@
<configuration>
<instructions>
<Export-Package>org.glassfish.jersey.examples.osgihttpservice</Export-Package>
<Import-Package>javax.servlet.*;version="[2.4,5.0)",*</Import-Package>
<Import-Package>jakarta.servlet.*;version="[5.0,6.0)",*</Import-Package>
<Bundle-Activator>org.glassfish.jersey.examples.osgihttpservice.Activator</Bundle-Activator>
<Implementation-Title>jersey-osgi-http-service-bundle</Implementation-Title>
<Implementation-Version>${project.version}</Implementation-Version>
Expand Down
2 changes: 1 addition & 1 deletion examples/osgi-http-service/functional-test/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<parent>
<groupId>org.glassfish.jersey.examples</groupId>
<artifactId>osgi-http-service</artifactId>
<version>3.0.0-SNAPSHOT</version>
<version>3.1.0-SNAPSHOT</version>
</parent>

<groupId>org.glassfish.jersey.examples.osgi-http-service</groupId>
Expand Down
4 changes: 2 additions & 2 deletions examples/osgi-http-service/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
<description>OSGi HttpService example</description>

<modules>
<!--<module>bundle</module>-->
<!-- <module>functional-test</module>-->
<module>bundle</module>
<module>functional-test</module>
</modules>

<profiles>
Expand Down
14 changes: 7 additions & 7 deletions examples/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@
<modules>
<module>assemblies</module>
<!--<module>bean-validation-webapp</module>-->
<!-- <module>bookmark</module> Jakartification -->
<!-- <module>bookmark-em</module> Jakartification-->
<module>bookmark</module>
<module>bookmark-em</module>
<module>bookstore-webapp</module>
<module>cdi-webapp</module>
<module>clipboard</module>
Expand All @@ -64,7 +64,7 @@
<module>entity-filtering</module>
<module>entity-filtering-selectable</module>
<module>entity-filtering-security</module>
<!-- <module>extended-wadl-webapp</module> Jakartification -->
<module>extended-wadl-webapp</module>
<module>exception-mapping</module>
<!--<module>feed-combiner-java8-webapp</module>-->
<module>freemarker-webapp</module>
Expand Down Expand Up @@ -101,11 +101,11 @@
<!--<module>monitoring-webapp</module>-->
<module>multipart-webapp</module>
<module>open-tracing</module>
<!-- <module>osgi-helloworld-webapp</module> Jakartification-->
<!-- <module>osgi-http-service</module> Jakartification -->
<!-- <module>oauth-client-twitter</module> Jakartification -->
<module>osgi-helloworld-webapp</module>
<!-- <module>osgi-http-service</module> Jakartification - felix osgi is not jakartificated-->
<module>oauth-client-twitter</module>
<!--<module>oauth2-client-google-webapp</module>-->
<!-- <module>reload</module> Jakartification-->
<module>reload</module>
<module>rx-client-webapp</module>
<module>server-async</module>
<module>server-async-managed</module>
Expand Down
6 changes: 3 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2134,7 +2134,7 @@
<servlet5.version>5.0.0</servlet5.version>
<istack.commons.runtime.version>4.0.0</istack.commons.runtime.version>
<jakarta.activation-api.version>2.0.0</jakarta.activation-api.version>
<jakarta.activation.version>2.0.0</jakarta.activation.version>
<jakarta.activation.version>2.0.1</jakarta.activation.version>
<jakarta.el.version>4.0.0</jakarta.el.version>
<jakarta.el.impl.version>4.0.0</jakarta.el.impl.version>
<jakarta.annotation.osgi.version>jakarta.annotation.*;version="[2.0,3)"</jakarta.annotation.osgi.version>
Expand All @@ -2143,8 +2143,8 @@
<jakarta.interceptor.version>2.0.0</jakarta.interceptor.version>
<jakarta.persistence.version>3.0.0</jakarta.persistence.version>
<jakarta.validation.api.version>3.0.0</jakarta.validation.api.version>
<jakarta.jaxb.api.version>3.0.0</jakarta.jaxb.api.version>
<jaxb.ri.version>3.0.0</jaxb.ri.version>
<jakarta.jaxb.api.version>3.0.1</jakarta.jaxb.api.version>
<jaxb.ri.version>3.0.2</jaxb.ri.version>
<jaxrs.api.spec.version>3.0</jaxrs.api.spec.version>
<jaxrs.api.impl.version>3.1-SNAPSHOT</jaxrs.api.impl.version>
<jetty.version>11.0.0</jetty.version>
Expand Down