users@jersey.java.net

[Jersey] Re: cannot find jersey in maven

From: Pavel Bucek <pavel.bucek_at_oracle.com>
Date: Sun, 24 Apr 2011 21:29:28 +0200

On 4/24/11 7:08 PM, nimmy wrote:
> Hi,
>
> I've a first time jersey-client user and I am trying to add the dependency
> in maven but am getting an 'Missing artifact...' error message.
>
> <dependency>
> <groupId>com.sun.jersey</groupId>
> <artifactId>jersey-client</artifactId>
> <version>1.6</version>
> </dependency>
>
> Are the instructions in
> http://jersey.java.net/nonav/documentation/latest/chapter_deps.html#core_client
> out of date?
no.

My guess is that you don't declare repository in your pom file. Please
try adding this:

<repositories>
<repository>
<id>maven2-repository.java.net</id>
<name>Java.net Repository for Maven</name>
<url>http://download.java.net/maven/2/</url>
<layout>default</layout>
</repository>
</repositories>

(btw this info is in the very same chapter, see
http://jersey.java.net/nonav/documentation/latest/chapter_deps.html)

Pavel
> Cheers,
> Nim
>
> --
> View this message in context: http://jersey.576304.n2.nabble.com/cannot-find-jersey-in-maven-tp6301234p6301234.html
> Sent from the Jersey mailing list archive at Nabble.com.
>