为Eclipse中的项目添加Maven存储库? [英] Add Maven repositories for a project in Eclipse?
本文介绍了为Eclipse中的项目添加Maven存储库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何为项目添加Maven存储库.我正在使用Eclipse Juno版本:Juno Service Release 1 Build ID:20120920-0800,并使用Fedora作为操作系统.
How can I add Maven repositories for a project. I'm using Eclipse Juno version: Juno Service Release 1 Build id: 20120920-0800 and using Fedora as my OS.
推荐答案
您可以将其包含在 pom.xml
中.只需将存储库信息添加到< project>
标记
You can include it in your pom.xml
. Just add the repositories information inside the <project>
tag
<repositories>
<repository>
<id>maven-restlet</id>
<name>Public online Restlet repository</name>
<url>http://maven.restlet.org</url>
</repository>
</repositories>
这篇关于为Eclipse中的项目添加Maven存储库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文