Final Java EE 7 APIs are just all getting pushed to Maven Central these days. So please, be patient with the maven dependency hiccups. Adding the staging repo works around the issue for the next few days. Everything should be fine again once all components are pushed.
Marek
On May 28, 2013, at 10:11 AM, Andrzej Leśkiewicz <andrzej.leskiewicz_at_gmail.com> wrote:
> 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