Reputation: 115
I am trying to create a new Maven project using Jersey web application, but I am getting the error in pom.xml.
Missing artifact com.sun.jersey:jersey-servlet:jar:1.20-SNAPSHOT
Upvotes: 1
Views: 2619
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
Reputation: 2923
Don't use snapshot version. Use latest stable version of com.sun.jersey packages is 1.19.4
Upvotes: 3