Skip to content

Commit 06cfdbb

Browse files
debovemawing328
authored andcommitted
Add missing javax dependencies for Java > 8 (#3188)
* Add missing javax dependencies for Java > 8 * update spring petstore samples
1 parent 55ae485 commit 06cfdbb

File tree

13 files changed

+85
-0
lines changed

13 files changed

+85
-0
lines changed

modules/openapi-generator/src/main/resources/JavaSpring/libraries/spring-boot/pom.mustache

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,11 @@
9494
<artifactId>springfox-swagger-ui</artifactId>
9595
<version>${springfox-version}</version>
9696
</dependency>
97+
<dependency>
98+
<groupId>javax.xml.bind</groupId>
99+
<artifactId>jaxb-api</artifactId>
100+
<version>2.2.11</version>
101+
</dependency>
97102
{{/useSpringfox}}
98103
{{^useSpringfox}}
99104
<dependency>

modules/openapi-generator/src/main/resources/JavaSpring/libraries/spring-mvc/pom.mustache

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,16 @@
137137
<artifactId>spring-web</artifactId>
138138
<version>${spring-version}</version>
139139
</dependency>
140+
<dependency>
141+
<groupId>javax.annotation</groupId>
142+
<artifactId>javax.annotation-api</artifactId>
143+
<version>1.3.2</version>
144+
</dependency>
145+
<dependency>
146+
<groupId>javax.xml.bind</groupId>
147+
<artifactId>jaxb-api</artifactId>
148+
<version>2.2.11</version>
149+
</dependency>
140150
{{#useSpringfox}}
141151
<!--SpringFox dependencies-->
142152
<dependency>

samples/client/petstore/spring-stubs/pom.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,11 @@
3535
<artifactId>springfox-swagger-ui</artifactId>
3636
<version>${springfox-version}</version>
3737
</dependency>
38+
<dependency>
39+
<groupId>javax.xml.bind</groupId>
40+
<artifactId>jaxb-api</artifactId>
41+
<version>2.2.11</version>
42+
</dependency>
3843
<dependency>
3944
<groupId>com.fasterxml.jackson.datatype</groupId>
4045
<artifactId>jackson-datatype-jsr310</artifactId>

samples/server/petstore/spring-mvc-j8-async/pom.xml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,16 @@
9595
<artifactId>spring-web</artifactId>
9696
<version>${spring-version}</version>
9797
</dependency>
98+
<dependency>
99+
<groupId>javax.annotation</groupId>
100+
<artifactId>javax.annotation-api</artifactId>
101+
<version>1.3.2</version>
102+
</dependency>
103+
<dependency>
104+
<groupId>javax.xml.bind</groupId>
105+
<artifactId>jaxb-api</artifactId>
106+
<version>2.2.11</version>
107+
</dependency>
98108
<!--SpringFox dependencies-->
99109
<dependency>
100110
<groupId>io.springfox</groupId>

samples/server/petstore/spring-mvc-j8-localdatetime/pom.xml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,16 @@
9595
<artifactId>spring-web</artifactId>
9696
<version>${spring-version}</version>
9797
</dependency>
98+
<dependency>
99+
<groupId>javax.annotation</groupId>
100+
<artifactId>javax.annotation-api</artifactId>
101+
<version>1.3.2</version>
102+
</dependency>
103+
<dependency>
104+
<groupId>javax.xml.bind</groupId>
105+
<artifactId>jaxb-api</artifactId>
106+
<version>2.2.11</version>
107+
</dependency>
98108
<!--SpringFox dependencies-->
99109
<dependency>
100110
<groupId>io.springfox</groupId>

samples/server/petstore/spring-mvc/pom.xml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,16 @@
9595
<artifactId>spring-web</artifactId>
9696
<version>${spring-version}</version>
9797
</dependency>
98+
<dependency>
99+
<groupId>javax.annotation</groupId>
100+
<artifactId>javax.annotation-api</artifactId>
101+
<version>1.3.2</version>
102+
</dependency>
103+
<dependency>
104+
<groupId>javax.xml.bind</groupId>
105+
<artifactId>jaxb-api</artifactId>
106+
<version>2.2.11</version>
107+
</dependency>
98108
<!--SpringFox dependencies-->
99109
<dependency>
100110
<groupId>io.springfox</groupId>

samples/server/petstore/springboot-beanvalidation/pom.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,11 @@
4848
<artifactId>springfox-swagger-ui</artifactId>
4949
<version>${springfox-version}</version>
5050
</dependency>
51+
<dependency>
52+
<groupId>javax.xml.bind</groupId>
53+
<artifactId>jaxb-api</artifactId>
54+
<version>2.2.11</version>
55+
</dependency>
5156
<dependency>
5257
<groupId>com.github.joschi.jackson</groupId>
5358
<artifactId>jackson-datatype-threetenbp</artifactId>

samples/server/petstore/springboot-delegate-j8/pom.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,11 @@
4848
<artifactId>springfox-swagger-ui</artifactId>
4949
<version>${springfox-version}</version>
5050
</dependency>
51+
<dependency>
52+
<groupId>javax.xml.bind</groupId>
53+
<artifactId>jaxb-api</artifactId>
54+
<version>2.2.11</version>
55+
</dependency>
5156
<dependency>
5257
<groupId>com.fasterxml.jackson.datatype</groupId>
5358
<artifactId>jackson-datatype-jsr310</artifactId>

samples/server/petstore/springboot-delegate/pom.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,11 @@
4848
<artifactId>springfox-swagger-ui</artifactId>
4949
<version>${springfox-version}</version>
5050
</dependency>
51+
<dependency>
52+
<groupId>javax.xml.bind</groupId>
53+
<artifactId>jaxb-api</artifactId>
54+
<version>2.2.11</version>
55+
</dependency>
5156
<dependency>
5257
<groupId>com.github.joschi.jackson</groupId>
5358
<artifactId>jackson-datatype-threetenbp</artifactId>

samples/server/petstore/springboot-implicitHeaders/pom.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,11 @@
4848
<artifactId>springfox-swagger-ui</artifactId>
4949
<version>${springfox-version}</version>
5050
</dependency>
51+
<dependency>
52+
<groupId>javax.xml.bind</groupId>
53+
<artifactId>jaxb-api</artifactId>
54+
<version>2.2.11</version>
55+
</dependency>
5156
<dependency>
5257
<groupId>com.fasterxml.jackson.datatype</groupId>
5358
<artifactId>jackson-datatype-jsr310</artifactId>

samples/server/petstore/springboot-useoptional/pom.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,11 @@
4848
<artifactId>springfox-swagger-ui</artifactId>
4949
<version>${springfox-version}</version>
5050
</dependency>
51+
<dependency>
52+
<groupId>javax.xml.bind</groupId>
53+
<artifactId>jaxb-api</artifactId>
54+
<version>2.2.11</version>
55+
</dependency>
5156
<dependency>
5257
<groupId>com.fasterxml.jackson.datatype</groupId>
5358
<artifactId>jackson-datatype-jsr310</artifactId>

samples/server/petstore/springboot-virtualan/pom.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,11 @@
4848
<artifactId>springfox-swagger-ui</artifactId>
4949
<version>${springfox-version}</version>
5050
</dependency>
51+
<dependency>
52+
<groupId>javax.xml.bind</groupId>
53+
<artifactId>jaxb-api</artifactId>
54+
<version>2.2.11</version>
55+
</dependency>
5156
<dependency>
5257
<groupId>com.fasterxml.jackson.datatype</groupId>
5358
<artifactId>jackson-datatype-jsr310</artifactId>

samples/server/petstore/springboot/pom.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,11 @@
4848
<artifactId>springfox-swagger-ui</artifactId>
4949
<version>${springfox-version}</version>
5050
</dependency>
51+
<dependency>
52+
<groupId>javax.xml.bind</groupId>
53+
<artifactId>jaxb-api</artifactId>
54+
<version>2.2.11</version>
55+
</dependency>
5156
<dependency>
5257
<groupId>com.fasterxml.jackson.datatype</groupId>
5358
<artifactId>jackson-datatype-jsr310</artifactId>

0 commit comments

Comments
 (0)