Skip to content

Commit 99cbd66

Browse files
authored
Merge pull request #144 from swagger-api/issue-142
updated jersey2 pom template to fix build and runtime error for sample
2 parents dc70426 + 653b6b2 commit 99cbd66

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

src/main/resources/v2/JavaJaxRS/pom.mustache

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,11 @@
152152
<artifactId>jersey-media-multipart</artifactId>
153153
<version>${jersey2-version}</version>
154154
</dependency>
155+
<dependency>
156+
<groupId>org.glassfish.jersey.inject</groupId>
157+
<artifactId>jersey-hk2</artifactId>
158+
<version>${jersey2-version}</version>
159+
</dependency>
155160
{{#java8}}
156161
<dependency>
157162
<groupId>com.fasterxml.jackson.datatype</groupId>
@@ -171,6 +176,11 @@
171176
<artifactId>jackson-jaxrs-json-provider</artifactId>
172177
<version>${jackson-version}</version>
173178
</dependency>
179+
<dependency>
180+
<groupId>com.fasterxml.jackson.core</groupId>
181+
<artifactId>jackson-annotations</artifactId>
182+
<version>${jackson-version}</version>
183+
</dependency>
174184
<!-- Base64 encoding that works in both JVM and Android -->
175185
<dependency>
176186
<groupId>com.brsanthu</groupId>
@@ -223,8 +233,8 @@
223233
<swagger-core-version>2.0.0</swagger-core-version>
224234
{{/useOas2}}
225235
<jetty-version>9.2.9.v20150224</jetty-version>
226-
<jersey2-version>2.22.2</jersey2-version>
227-
<jackson-version>2.8.9</jackson-version>
236+
<jersey2-version>2.27</jersey2-version>
237+
<jackson-version>2.9.5</jackson-version>
228238
{{#supportJava6}}
229239
<commons_io_version>2.5</commons_io_version>
230240
<commons_lang3_version>3.5</commons_lang3_version>

0 commit comments

Comments
 (0)