我的maven工件被部署到Nexus快照存储库。在那里,它被存储在正确的目录,但它的文件名有以下模式:Maven:为什么工件文件名中缺少-SNAPSHOT后缀?
mylibrary-1.0-20130213.125827-2.jar
然而,Maven的无法下载该快照。根据错误日志,Maven的似乎期待以下文件名:
mylibrary-1.0-SNAPSHOT.jar
这些都是在我的POM库设置:
<repositories>
<repository>
<id>mycompany-all</id>
<url>https://servername/nexus/content/groups/mycompany/</url>
</repository>
</repositories>
<distributionManagement>
<repository>
<id>mycompany-releases</id>
<url>https://servername/nexus/content/repositories/releases/</url>
</repository>
<snapshotRepository>
<id>mycompany-snapshots</id>
<url>https://servername/nexus/content/repositories/snapshots/</url>
</snapshotRepository>
</distributionManagement>
注:承上启下组中同时包含releases
和snapshots
回购。
我没有配置这些回购settings.xml
- 是这样的问题?还有什么我做错了?
你说“* Maven似乎期望... *”。当您按照我的建议并参考'mylibrary-1.0-20130213.125827-2.jar'作为'mylibrary-1.0-SNAPSHOT'时,你会得到一个错误吗? – 2013-02-14 11:33:13