Eclipse Java-如何在Maven中包括Jersey原型? [英] Eclipse java - How do I include Jersey archetype in Maven?
本文介绍了Eclipse Java-如何在Maven中包括Jersey原型?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试使用Maven Jersey原型创建一个Webapp,但是当我搜索它时,却没有任何结果.
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?
预期:
实际:
推荐答案
您需要将Jersey Maven原型添加到Eclipse,因为您的目录不是最新版本.
You need to add the Jersey Maven Archetype to your Eclipse because your catalog is not the lastest version.
转到首选项-> Maven->原型->添加远程目录,然后添加以下参数:
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
注意:可能需要重新启动Eclipse.
Note: Probably It's necesary to restart your Eclipse.
这篇关于Eclipse Java-如何在Maven中包括Jersey原型?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文