Search code examples
eclipsemaveneclipse-pluginjersey

Eclipse java - How do I include Jersey archetype in Maven?


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?

Expected: enter image description here

Actual:

enter image description here


Solution

  • 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.