Adding org.glassfish.jersey.archetypes in eclipse
Solution 1
You can solve this issue by adding a new Maven Archetype.
- Open
Window > Preferences
- Open
Maven > Archetypes
- Click
Add Remote Catalog
and add the following:-
Catalog File:
https://repo.maven.apache.org/maven2/archetype-catalog.xml
-
Description:
maven catalog
-
Catalog File:
- Restart eclipse
Try creating a maven project again. It will work :).
{search filter:jersey-quickstart-webapp}
You will have the latest version.
Solution 2
Steps
- Open Eclipse
- Choose
New > Project > Maven Project
- Choose
Add Archetype
and enter the following details:- Archetype Group ID:
org.glassfish.jersey.archetypes
- Archetype Artifact ID:
jersey-quickstart-webapp
- Archetype Version:
2.16
[enter the latest version that is available]
- Archetype Group ID:
- Choose the newly entered archetype from the Archetype selection screen
- Enter your project details -
Group ID
,Artifact ID
andVersion
.
More Information: https://javabrains.io/courses/javaee_jaxrs/lessons/Setting-Up
Solution 3
You can solve this issue by adding a new Maven Archetype locally. By locally, I mean-
- Go to this URL and download the XML file at your local file system.
- Open
Window > Preferences
- Open
Maven > Archetypes
- Click Add Local Catalog > Browse to the location of your
archetype-catalog.xml
file - Add Descritpion
- OK
Hope this will help you.
Solution 4
Try to change the version 2.21 insted of 2.16 :
org.glassfish.jersey.archetypes jersey-quickstart-webapp 2.21
Solution 5
Thanks @sreejith v s . The above mentioned method worked completely fine .I'll repeat the same steps here:-
- Open Window > Preferences
- Open Maven > Archetypes
-
Click Add Remote Catalog and add the following:
3.1 Catalog File: http://repo1.maven.org/maven2/archetype-catalog.xml
3.2 Description: maven catalog
Restart eclipse
While creating maven project your window might take time to load all the Archetype but it does load all of them because here we have added the archetype-catalog.xml as remote catalog file.
Admin
Updated on September 28, 2020Comments
-
Admin over 3 years
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