-1

I am trying to run mvn verify on my project with 2.22.1 Jersey version.

<dependency>
  <groupId>org.glassfish.jersey.containers</groupId>
  <artifactId>jersey-container-servlet</artifactId>
  <version>2.22.1</version>
  <scope>runtime</scope>
</dependency>

When running mvn verify it says I am using jersey-container-servle-core and I haven't declared it. According to Jersey notification this dependency in already in jersey-container-servlet. Any idea?

Shiran Maor
  • 309
  • 2
  • 5
  • 18

1 Answers1

0

The problem was that I used the "core" dependency in unit test and in web.xml. In order to solve it I can do either:

  1. Change continar-servlet to compile and then I will have it for test as well. Because container-servlet include "core", it will work on test as well.

  2. Add jersey-container-servle-core just for test scope or with runtime

Shiran Maor
  • 309
  • 2
  • 5
  • 18