本周末我一直在研究Nexus guide,我已经完成了所有设置,我可以将快照发布到我当地的nexus安装中。
我似乎无法弄清楚如何让m2eclipse看到快照并在Add Dependencies搜索面板中将其作为一个选项提供。我怎么做?谢谢!
如果有任何用处,我的settings.xml如下:
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
http://maven.apache.org/xsd/settings-1.0.0.xsd">
<localRepository />
<interactiveMode />
<usePluginRegistry />
<offline />
<pluginGroups />
<servers>
<server>
<id>localSnap</id>
<username>deployment</username>
<password>*****</password>
</server>
</servers>
<mirrors>
<mirror>
<!--This sends everything else to /public -->
<id>nexus</id>
<mirrorOf>*</mirrorOf>
<url>http://localhost:8080/nexus/content/groups/public</url>
</mirror>
</mirrors>
<profiles>
<profile>
<id>nexus</id>
<!--Enable snapshots for the built in central repo to direct -->
<!--all requests to nexus via the mirror -->
<repositories>
<repository>
<id>central</id>
<url>http://central</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>central</id>
<url>http://central</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</pluginRepository>
</pluginRepositories>
</profile>
</profiles>
<activeProfiles>
<!--make the profile active all the time -->
<activeProfile>nexus</activeProfile>
</activeProfiles>
</settings>
答案 0 :(得分:3)
我现在有了答案。你必须设置nexus来发布索引。 http://www.sonatype.com/people/2009/09/nexus-scheduled-tasks ...设置计划任务以发布m2eclipse等客户端的索引。但是您必须等到等待状态出现在nexus中的计划任务部分。在eclipse重新启动后它必须工作。此致,Jakub
BTW:您的代理存储库必须具有“下载远程索引 - 真”,并且nexus必须能够搜索远程索引......但我想你知道