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

寵の児 提交于 2019-12-13 16:23:32

问题


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:

Actual:


回答1:


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.



来源:https://stackoverflow.com/questions/46646253/eclipse-java-how-do-i-include-jersey-archetype-in-maven

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!