Reputation: 494
I am trying to create a Webapp using Maven Jersey archetype, but while I am searching it, it's not giving me any result.
Can you please if I need to set up anything for this or how do I get the search result for this?
Actual:
Upvotes: 2
Views: 3000
Reputation: 101
The update one is :
Go to Preferences -> Maven -> Archetypes ->Add Remote Catalog and add these parameters:
Catalog File: https://repo.maven.apache.org/maven2/archetype-catalog.xml
Description: maven catalog
Click on verify to check the remote link.
Note: restart your Eclipse
Source:https://maven.apache.org/archetype/archetype-models/archetype-catalog/archetype-catalog.html
The Archetype Plugin knows by default its internal catalog. It also knows about the local and remote catalogs:
local represents the ~/.m2/archetype-catalog.xml catalog file,
remote represents the https://repo.maven.apache.org/maven2/archetype-catalog.xml catalog file.
Upvotes: 1
Reputation: 8257
You need to add the Jersey Maven Archetype to your Eclipse because your catalog is not the lastest version.
Go to Preferences -> Maven -> Archetypes ->Add Remote Catalog and add these parameters:
Catalog File: http://repo1.maven.org/maven2/archetype-catalog.xml
Description: maven catalog
Note: Probably It's necesary to restart your Eclipse.
Upvotes: 5