title: Add resource path segment for java packages in JAX-RS/Jersey?
body: <p>I'm using Jersey 2.19. I would like to support two versions of my API. For that, I would like to have two main paths: <code>/api/v1</code> and <code>/api/v2</code>. I would like to have two packages <code>com.test.v1</code> (with v1 API resources) and <code>com.test.v2</code> (with v2 API resources).</p>
  
  <p>I know how to define a path for the whole application, I will just use the <code>@ApplicationPath('api')</code> on my <code>ResourceConfig</code> class. However, how would I define that package <code>com.test.v1</code> resources live in the <code>/v1</code> namespace, and package <code>com.test.v2</code> resources live in the <code>/v2</code> namespace? Currently, I see no other option than to add the 'v1' and 'v2' prefixes in each <code>@Path</code> annotation, like: <code>@Path('v1/something')</code> or <code>@Path('v2/something')</code> prefix to each resource. This is a lot of redundancy.</p>
  
  <p>Is there a better way?</p>