users@jersey.java.net

[Jersey] Re: 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 08:47:07 +0800

Yes, it is working now after added the Maven repository
https://maven.java.net/content/groups/promoted
Thanks, Pavel!



On Sun, Jun 9, 2013 at 3:42 AM, Pavel Bucek <pavel.bucek_at_oracle.com> wrote:

> Hello,
>
> please see
> https://java.net/projects/jersey/lists/users/archive/2013-06/message/5
>
> Regards,
> Pavel
>
>
> On 6/8/13 8:34 PM, hezjing wrote:
>
> 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
>
>
>


-- 
Hez