users@jersey.java.net

[Jersey] Could not find artifact javax.annotation:javax.annotation-api:jar:1.2 in central

From: hezjing <hezjing_at_gmail.com>
Date: Sun, 9 Jun 2013 02:34:48 +0800

Hi

I want to try Jersey 2.0, the latest JAX-RS 2.0 implementation.

From the Maven central
repository<http://search.maven.org/#search%7Cga%7C1%7Corg.glassfish.jersey>,
the latest version of Jersey artifacts are 2.0. Hence, I added a dependency
like this

<dependency>
<groupId>javax.ws.rs</groupId>
<artifactId>javax.ws.rs-api</artifactId>
<version>2.0</version>
</dependency>
<dependency>
<groupId>org.glassfish.jersey.containers</groupId>
<artifactId>jersey-container-servlet</artifactId>
<version>2.0</version>
</dependency>


When built, the Maven failed to resolve the dependency with the error of
could not find artifact javax.annotation:javax.annotation-api:jar:1.2 in
central. Do you have any idea of what could be the problem?

The jersey.java.net said that the 2.0 development is still in progress but
I'm not sure what is the latest milestone version. The version 2.0 listed
in the Maven central repository confused me ...


-- 
Hez