Adding org.glassfish.jersey.archetypes in eclipse

user1326301 picture user1326301 · Jul 30, 2015 · Viewed 56k times · Source

I am trying to create a maven project in eclipse. I am trying create a archetype but getting the below error.

Can't resolve Archetype org.glassfish.jersey.archetypes:jersey-quickstart-webapp:2.16
org.eclipse.core.runtime.CoreException: Could not resolve artifact org.glassfish.jersey.archetypes:jersey-quickstart-webapp:pom:2.16

Answer

sreejith v s picture sreejith v s · Aug 8, 2015

You can solve this issue by adding a new Maven Archetype.

  1. Open Window > Preferences
  2. Open Maven > Archetypes
  3. Click Add Remote Catalog and add the following:
    • Catalog File: https://repo.maven.apache.org/maven2/archetype-catalog.xml
    • Description: maven catalog
  4. Restart eclipse

Try creating a maven project again. It will work :).

{search filter:jersey-quickstart-webapp}

You will have the latest version.