users@jersey.java.net

[Jersey] Jersey 2.0 Maven central dependency issue

From: Andrzej Le¶kiewicz <andrzej.leskiewicz_at_gmail.com>
Date: Tue, 28 May 2013 10:11:08 +0200

Hi,

It looks like there is some dependency issue with latest Jersey build on
Maven central.

Today I refreshed my dependencies, and version 2.0 got downloaded. this is
what I got in console:

FAILURE: Build failed with an exception.
> * What went wrong:
> Could not resolve all dependencies for configuration ':compile'.
> > Could not find javax.annotation:javax.annotation-api:1.2.
> Required by:
> :AsycJsonView:1.0 > org.glassfish.jersey.core:jersey-common:2.0


After investigating, it looks like
javax.annotation:javax.annotation-api:1.2 is still in version b04 in maven
central. Adding java.net staging to repositories fixed everything:

repositories {
> mavenCentral()
> maven {
> url "https://maven.java.net/content/repositories/staging"
> }
> }


BUILD SUCCESSFUL


-- 
Best regards
Andrzej Le¶kiewicz