Ayan Bhattacharjee
Ayan Bhattacharjee

Reputation: 115

Eclipse Maven Missing artifact com.sun.jersey:jersey-servlet:jar:1.20-SNAPSHOT

I am trying to create a new Maven project using Jersey web application, but I am getting the error in pom.xml.


(Click image to enlarge)

Missing artifact com.sun.jersey:jersey-servlet:jar:1.20-SNAPSHOT

Upvotes: 1

Views: 2619

Answers (2)

Kiran Kumar R
Kiran Kumar R

Reputation: 11

Had similar error.

Change the of those giving error to 1.19

Example :

    <dependency>
        <groupId>com.sun.jersey</groupId>
        <artifactId>jersey-servlet</artifactId>
        <version>1.19</version>
    </dependency>
    <dependency>
        <groupId>com.sun.jersey</groupId>
        <artifactId>jersey-json</artifactId>
        <version>1.19</version>
    </dependency>

It should work. Keep the PROPERTIES tag the same way. In my case, it was :

<properties>
    <jersey.version>1.20-SNAPSHOT</jersey.version>
    <glassfish.version>3.1.1</glassfish.version>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>

Upvotes: 1

Peter Š&#225;ly
Peter Š&#225;ly

Reputation: 2923

Don't use snapshot version. Use latest stable version of com.sun.jersey packages is 1.19.4

Central repository

Upvotes: 3

Related Questions