title: Does Swagger also work with Jersey 2.x?
body: <p>What I want to do is to add Swagger to my REST Api based on Jersey 2.x. </p>
  
  <p>But it seems Swagger for Jersey is based on Jersey 1.x.
  When I added the Swagger dependencies in Maven I get the following exception:</p>
  
  <pre><code>Exception in thread "main" java.lang.NoSuchMethodError: javax.ws.rs.core.Application.getProperties()Ljava/util/Map;
    at org.glassfish.jersey.server.ApplicationHandler.&lt;init&gt;(ApplicationHandler.java:304)
    at org.glassfish.jersey.server.ApplicationHandler.&lt;init&gt;(ApplicationHandler.java:285)
    at org.glassfish.jersey.grizzly2.httpserver.GrizzlyHttpContainer.&lt;init&gt;(GrizzlyHttpContainer.java:331)
    at org.glassfish.jersey.grizzly2.httpserver.GrizzlyHttpServerFactory.createHttpServer(GrizzlyHttpServerFactory.java:119)
  </code></pre>
  
  <p>I think this is because </p>
  
  <pre><code>&lt;dependency&gt;
    &lt;groupId&gt;com.wordnik&lt;/groupId&gt;
    &lt;artifactId&gt;swagger-jersey-jaxrs_2.10&lt;/artifactId&gt;
    &lt;version&gt;1.3.1&lt;/version&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>has dependency to</p>
  
  <pre><code>&lt;dependency&gt;
    &lt;groupId&gt;com.sun.jersey&lt;/groupId&gt;
    &lt;artifactId&gt;jersey-client&lt;/artifactId&gt;
    &lt;version&gt;1.13&lt;/version&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>And this is in conflict to the Jersey 2.x my application is using.
  Is there a Swagger integration for Jersey 2.x available?</p>
  
  <p>Any ideas how to solve my problem otherwise?</p>