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
In short, Archetype is a Maven project templating toolkit. An archetype is defined as an original pattern or model from which all other things of the same kind are made. The name fits as we are trying to provide a system that provides a consistent means of generating Maven projects.
Here's a quick walk-through of how to create the Jersey archetype in Eclipse Go to File → New → Other In the dialog, select the Maven file the Maven Project, then Next In the next dialog keep all the defaults, and hit Next In this next dialog we will select the Maven archetype. In the search box, type jersey-quickstart-webapp.
Jersey Archetype Heroku Webapp An archetype which contains a quick start Jersey-based web application project capable to run on Heroku. 3. Jersey Archetypes A module containing archetypes for generating Jersey-based applications. 4. Jersey Archetype Grizzly2 An archetype which contains a quick start Jersey project based on Grizzly container. 5.
Archetype Version: 2.16 [enter the latest version that is available] Choose the newly entered archetype from the Archetype selection screen Enter your project details - Group ID, Artifact ID and Version.
If you are not seeing any results come up from the search, then it's likely you don't have the archetypes installed. See this Stackoverflow answer for how you can get the archetypes. Once the archetypes load, and you see the jersey-quickstart-webapp in the results list, uncheck "Show the last version of Archetype only".
You can solve this issue by adding a new Maven Archetype.
Window > Preferences
Maven > Archetypes
Add Remote Catalog
and add the following: https://repo.maven.apache.org/maven2/archetype-catalog.xml
maven catalog
Try creating a maven project again. It will work :).
{search filter:jersey-quickstart-webapp}
You will have the latest version.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With