From 4dec9bb26dfcdb5a93a191356321d5e3be20c267 Mon Sep 17 00:00:00 2001 From: HoaPhan Date: Wed, 3 May 2023 16:46:19 +1000 Subject: [PATCH] make some module Java 11 friendly - where package javax.xml.bind was removed --- modules/swagger-generator/pom.xml | 3 ++- samples/server/petstore/jaxrs-datelib-j8/pom.xml | 6 ++++++ samples/server/petstore/spring-mvc-j8-async/pom.xml | 7 +++++++ .../server/petstore/spring-mvc-j8-localdatetime/pom.xml | 9 +++++++++ samples/server/petstore/springboot-delegate-j8/pom.xml | 6 ++++++ 5 files changed, 30 insertions(+), 1 deletion(-) diff --git a/modules/swagger-generator/pom.xml b/modules/swagger-generator/pom.xml index 59d128ef74d..57d6b78b59e 100644 --- a/modules/swagger-generator/pom.xml +++ b/modules/swagger-generator/pom.xml @@ -276,7 +276,7 @@ javax.xml.bind jaxb-api - 2.3.0 + ${jaxb-api.version} com.sun.xml.bind @@ -333,6 +333,7 @@ 1.0.0 2.5 2.11.5 + 2.3.0 9.4.51.v20230217 2.39.1 diff --git a/samples/server/petstore/jaxrs-datelib-j8/pom.xml b/samples/server/petstore/jaxrs-datelib-j8/pom.xml index ce059001691..6c402953b30 100644 --- a/samples/server/petstore/jaxrs-datelib-j8/pom.xml +++ b/samples/server/petstore/jaxrs-datelib-j8/pom.xml @@ -123,6 +123,11 @@ servlet-api ${servlet-api-version} + + javax.xml.bind + jaxb-api + ${jaxb-api.version} + org.glassfish.jersey.containers jersey-container-servlet-core @@ -171,6 +176,7 @@ 1.8 + 2.3.0 ${java.version} ${java.version} 1.5.24 diff --git a/samples/server/petstore/spring-mvc-j8-async/pom.xml b/samples/server/petstore/spring-mvc-j8-async/pom.xml index c964f3c165f..92d4fd2ce98 100644 --- a/samples/server/petstore/spring-mvc-j8-async/pom.xml +++ b/samples/server/petstore/spring-mvc-j8-async/pom.xml @@ -113,6 +113,12 @@ ${jackson-version} + + javax.xml.bind + jaxb-api + ${jaxb-api.version} + + junit junit @@ -160,6 +166,7 @@ 1.8 + 2.3.0 ${java.version} ${java.version} 9.3.27.v20190418 diff --git a/samples/server/petstore/spring-mvc-j8-localdatetime/pom.xml b/samples/server/petstore/spring-mvc-j8-localdatetime/pom.xml index a607f891c81..c366a20a74a 100644 --- a/samples/server/petstore/spring-mvc-j8-localdatetime/pom.xml +++ b/samples/server/petstore/spring-mvc-j8-localdatetime/pom.xml @@ -129,6 +129,7 @@ servlet-api ${servlet-api-version} + javax.validation @@ -136,6 +137,13 @@ 1.1.0.Final provided + + + javax.xml.bind + jaxb-api + ${jaxb-api.version} + + org.testng testng @@ -165,6 +173,7 @@ 1.8 + 2.3.0 ${java.version} ${java.version} 9.3.27.v20190418 diff --git a/samples/server/petstore/springboot-delegate-j8/pom.xml b/samples/server/petstore/springboot-delegate-j8/pom.xml index 5bf29c050eb..0a60f8423b8 100644 --- a/samples/server/petstore/springboot-delegate-j8/pom.xml +++ b/samples/server/petstore/springboot-delegate-j8/pom.xml @@ -7,6 +7,7 @@ 1.0.0 1.8 + 2.3.0 ${java.version} ${java.version} 2.7.0 @@ -63,6 +64,11 @@ javax.validation validation-api + + javax.xml.bind + jaxb-api + ${jaxb-api.version} + org.springframework.boot spring-boot-starter-test