Jersey framework extensions
Let's start our discussions on Jersey with a baby step. If you want to use any Jersey-specific feature in an application, then you will have to add a dependency to the appropriate Jersey libraries. For instance, to use a Jersey configuration class such as org.glassfish.jersey.server.ResourceConfig in your application, you need to depend on the jersey-container-servlet JAR. If the consuming application uses Maven for building the source, then specifying a dependency to the jersey-container-servlet JAR in the Project Object Model (POM) file may look like the following:
<dependency>
<groupId>org.glassfish.jersey.containers</groupId>
<!-- module -->
<artifactId>jersey-container-servlet</artifactId>
<!-2.26: latest release version -->
<version>2.26</version>
<!-- container(GlassFish) provides dependency
for this example -->
<scope>provided</scope...