From e0bae6466035f9074ac5f61bb3e65125ec6faa1f Mon Sep 17 00:00:00 2001 From: Mathieu Debove Date: Thu, 20 Jun 2019 11:11:04 +0200 Subject: [PATCH 1/2] Add missing javax dependencies for Java > 8 --- .../JavaSpring/libraries/spring-boot/pom.mustache | 5 +++++ .../JavaSpring/libraries/spring-mvc/pom.mustache | 10 ++++++++++ 2 files changed, 15 insertions(+) diff --git a/modules/openapi-generator/src/main/resources/JavaSpring/libraries/spring-boot/pom.mustache b/modules/openapi-generator/src/main/resources/JavaSpring/libraries/spring-boot/pom.mustache index 637a710a51d4..5c396de030c8 100644 --- a/modules/openapi-generator/src/main/resources/JavaSpring/libraries/spring-boot/pom.mustache +++ b/modules/openapi-generator/src/main/resources/JavaSpring/libraries/spring-boot/pom.mustache @@ -94,6 +94,11 @@ springfox-swagger-ui ${springfox-version} + + javax.xml.bind + jaxb-api + 2.2.11 + {{/useSpringfox}} {{^useSpringfox}} diff --git a/modules/openapi-generator/src/main/resources/JavaSpring/libraries/spring-mvc/pom.mustache b/modules/openapi-generator/src/main/resources/JavaSpring/libraries/spring-mvc/pom.mustache index aafc216dba03..dc9c843bc2b4 100644 --- a/modules/openapi-generator/src/main/resources/JavaSpring/libraries/spring-mvc/pom.mustache +++ b/modules/openapi-generator/src/main/resources/JavaSpring/libraries/spring-mvc/pom.mustache @@ -137,6 +137,16 @@ spring-web ${spring-version} + + javax.annotation + javax.annotation-api + 1.3.2 + + + javax.xml.bind + jaxb-api + 2.2.11 + {{#useSpringfox}} From 6d7bbc8dfdd37177311094802a58f0854830c796 Mon Sep 17 00:00:00 2001 From: wing328 Date: Mon, 24 Jun 2019 14:07:17 +0800 Subject: [PATCH 2/2] update spring petstore samples --- samples/client/petstore/spring-stubs/pom.xml | 5 +++++ samples/server/petstore/spring-mvc-j8-async/pom.xml | 10 ++++++++++ .../petstore/spring-mvc-j8-localdatetime/pom.xml | 10 ++++++++++ samples/server/petstore/spring-mvc/pom.xml | 10 ++++++++++ .../server/petstore/springboot-beanvalidation/pom.xml | 5 +++++ samples/server/petstore/springboot-delegate-j8/pom.xml | 5 +++++ samples/server/petstore/springboot-delegate/pom.xml | 5 +++++ .../server/petstore/springboot-implicitHeaders/pom.xml | 5 +++++ samples/server/petstore/springboot-useoptional/pom.xml | 5 +++++ samples/server/petstore/springboot-virtualan/pom.xml | 5 +++++ samples/server/petstore/springboot/pom.xml | 5 +++++ 11 files changed, 70 insertions(+) diff --git a/samples/client/petstore/spring-stubs/pom.xml b/samples/client/petstore/spring-stubs/pom.xml index a86dc3be43f6..18b3dc2308db 100644 --- a/samples/client/petstore/spring-stubs/pom.xml +++ b/samples/client/petstore/spring-stubs/pom.xml @@ -35,6 +35,11 @@ springfox-swagger-ui ${springfox-version} + + javax.xml.bind + jaxb-api + 2.2.11 + com.fasterxml.jackson.datatype jackson-datatype-jsr310 diff --git a/samples/server/petstore/spring-mvc-j8-async/pom.xml b/samples/server/petstore/spring-mvc-j8-async/pom.xml index 7c74b1f294a6..6b564dea71c8 100644 --- a/samples/server/petstore/spring-mvc-j8-async/pom.xml +++ b/samples/server/petstore/spring-mvc-j8-async/pom.xml @@ -95,6 +95,16 @@ spring-web ${spring-version} + + javax.annotation + javax.annotation-api + 1.3.2 + + + javax.xml.bind + jaxb-api + 2.2.11 + io.springfox diff --git a/samples/server/petstore/spring-mvc-j8-localdatetime/pom.xml b/samples/server/petstore/spring-mvc-j8-localdatetime/pom.xml index 92fd248964de..9b3b1f7bdcfd 100644 --- a/samples/server/petstore/spring-mvc-j8-localdatetime/pom.xml +++ b/samples/server/petstore/spring-mvc-j8-localdatetime/pom.xml @@ -95,6 +95,16 @@ spring-web ${spring-version} + + javax.annotation + javax.annotation-api + 1.3.2 + + + javax.xml.bind + jaxb-api + 2.2.11 + io.springfox diff --git a/samples/server/petstore/spring-mvc/pom.xml b/samples/server/petstore/spring-mvc/pom.xml index adcf1f576837..d5e6f655d79d 100644 --- a/samples/server/petstore/spring-mvc/pom.xml +++ b/samples/server/petstore/spring-mvc/pom.xml @@ -95,6 +95,16 @@ spring-web ${spring-version} + + javax.annotation + javax.annotation-api + 1.3.2 + + + javax.xml.bind + jaxb-api + 2.2.11 + io.springfox diff --git a/samples/server/petstore/springboot-beanvalidation/pom.xml b/samples/server/petstore/springboot-beanvalidation/pom.xml index 053b3d33f099..6536e609c6cf 100644 --- a/samples/server/petstore/springboot-beanvalidation/pom.xml +++ b/samples/server/petstore/springboot-beanvalidation/pom.xml @@ -48,6 +48,11 @@ springfox-swagger-ui ${springfox-version} + + javax.xml.bind + jaxb-api + 2.2.11 + com.github.joschi.jackson jackson-datatype-threetenbp diff --git a/samples/server/petstore/springboot-delegate-j8/pom.xml b/samples/server/petstore/springboot-delegate-j8/pom.xml index 4c26499044e5..b3b8c885f0da 100644 --- a/samples/server/petstore/springboot-delegate-j8/pom.xml +++ b/samples/server/petstore/springboot-delegate-j8/pom.xml @@ -48,6 +48,11 @@ springfox-swagger-ui ${springfox-version} + + javax.xml.bind + jaxb-api + 2.2.11 + com.fasterxml.jackson.datatype jackson-datatype-jsr310 diff --git a/samples/server/petstore/springboot-delegate/pom.xml b/samples/server/petstore/springboot-delegate/pom.xml index cefb505c3c64..83b61b77934c 100644 --- a/samples/server/petstore/springboot-delegate/pom.xml +++ b/samples/server/petstore/springboot-delegate/pom.xml @@ -48,6 +48,11 @@ springfox-swagger-ui ${springfox-version} + + javax.xml.bind + jaxb-api + 2.2.11 + com.github.joschi.jackson jackson-datatype-threetenbp diff --git a/samples/server/petstore/springboot-implicitHeaders/pom.xml b/samples/server/petstore/springboot-implicitHeaders/pom.xml index 987710c5de54..320db0c02a0e 100644 --- a/samples/server/petstore/springboot-implicitHeaders/pom.xml +++ b/samples/server/petstore/springboot-implicitHeaders/pom.xml @@ -48,6 +48,11 @@ springfox-swagger-ui ${springfox-version} + + javax.xml.bind + jaxb-api + 2.2.11 + com.fasterxml.jackson.datatype jackson-datatype-jsr310 diff --git a/samples/server/petstore/springboot-useoptional/pom.xml b/samples/server/petstore/springboot-useoptional/pom.xml index fb5ac072dcb3..76bec66a453b 100644 --- a/samples/server/petstore/springboot-useoptional/pom.xml +++ b/samples/server/petstore/springboot-useoptional/pom.xml @@ -48,6 +48,11 @@ springfox-swagger-ui ${springfox-version} + + javax.xml.bind + jaxb-api + 2.2.11 + com.fasterxml.jackson.datatype jackson-datatype-jsr310 diff --git a/samples/server/petstore/springboot-virtualan/pom.xml b/samples/server/petstore/springboot-virtualan/pom.xml index 220257f505d1..809f9c1f9aac 100644 --- a/samples/server/petstore/springboot-virtualan/pom.xml +++ b/samples/server/petstore/springboot-virtualan/pom.xml @@ -48,6 +48,11 @@ springfox-swagger-ui ${springfox-version} + + javax.xml.bind + jaxb-api + 2.2.11 + com.fasterxml.jackson.datatype jackson-datatype-jsr310 diff --git a/samples/server/petstore/springboot/pom.xml b/samples/server/petstore/springboot/pom.xml index 5ff1f68b5615..d4227500a1df 100644 --- a/samples/server/petstore/springboot/pom.xml +++ b/samples/server/petstore/springboot/pom.xml @@ -48,6 +48,11 @@ springfox-swagger-ui ${springfox-version} + + javax.xml.bind + jaxb-api + 2.2.11 + com.fasterxml.jackson.datatype jackson-datatype-jsr310