[英]Adding a Maven repository to settings.xml
I am trying to add a repository to my settings.xml file so I can use the libraries in that repository in a project I am working on. 我试图将存储库添加到我的settings.xml文件中,以便可以在我正在处理的项目中使用该存储库中的库。 here is my current settings.xml file.
这是我当前的settings.xml文件。
<settings>
.
.
<profiles>
<profile>
<id>standard-extra-repos</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
...
<repositories>
<repository>
<id>xuggle repo</id>
<name>Xuggler Repository</name>
<url>http://xuggle.googlecode.com/svn/trunk/repo/share/java/</url>
<layout>default</layout>
<releases><enabled>true</enabled><updatePolicy>never</updatePolicy></releases>
<snapshots><enabled>true</enabled><updatePolicy>never</updatePolicy></snapshots>
</repository>
</repositories>
<pluginRepositories>
...
</pluginRepositories>
</profile>
</profiles>
.
</settings>
I want to add the Xuggler repository to my settings.xml so I can search for the proper dependencies in M2E (Maven 2 Eclipse) and add them to my project. 我想将Xuggler存储库添加到我的settings.xml中,以便我可以在M2E(Maven 2 Eclipse)中搜索适当的依赖项并将它们添加到我的项目中。 When II go to windo->show view->Maven->maven repositories the xuggle repository is visible but completely empty.
当II转到windo-> show view-> Maven-> maven存储库时,xuggle存储库可见,但完全为空。 The Jars I need aren't being found.
找不到我需要的罐子。
The recommended way is to use a Maven Repository Manager such as Nexus to manage the repositories you need. 推荐的方法是使用Maven仓库管理器(例如Nexus)来管理所需的仓库。
See here how to configure the settings file: http://books.sonatype.com/nexus-book/reference/config-maven.html#ex-maven-nexus-simple 请参阅此处如何配置设置文件: http : //books.sonatype.com/nexus-book/reference/config-maven.html#ex-maven-nexus-simple
In order to support search and browsing of remote repositories from m2e, repository has to provide m2e indexes. 为了支持从m2e 搜索和浏览远程存储库,存储库必须提供m2e索引。 Here are somewhat outdated docs .
这里是一些过时的文档 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.