【发布时间】:2012-10-20 16:03:02
【问题描述】:
我的一些 nexus maven 工件会在 1-5 天后从存储库中消失。还不能重现。
怎么会这样?
Maven settings.xml:
<settings>
<mirrors>
<mirror>
<id>nexus</id>
<mirrorOf>*,!codehaus.snapshots,!snapshots</mirrorOf>
<url>http://192.168.2.252:8080/nexus/content/groups/public</url>
</mirror>
<mirror>
<id>nexus-snapshots</id>
<mirrorOf>codehaus.snapshots,snapshots</mirrorOf>
<url>http://192.168.2.252:8080/nexus/content/groups/public-snapshots</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>
<updatePolicy>always</updatePolicy>
</releases>
<snapshots>
<enabled>true</enabled>
<updatePolicy>always</updatePolicy>
</snapshots>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>central</id>
<url>http://central</url>
<releases>
<enabled>true</enabled>
<updatePolicy>always</updatePolicy>
</releases>
<snapshots>
<enabled>true</enabled>
<updatePolicy>always</updatePolicy>
</snapshots>
</pluginRepository>
</pluginRepositories>
</profile>
</profiles>
<activeProfiles>
<!--make the profile active all the time -->
<activeProfile>nexus</activeProfile>
</activeProfiles>
从公共和公共快照组下载的工件。
【问题讨论】:
-
你在nexus中配置了定时任务吗?修复或重新索引存储库?
-
没有。如果匿名用户查看计划任务选项卡并禁用安全性,则计划任务选项卡为空,匿名是管理员。
-
这些工件是快照吗?它们是仅从关系中消失还是从文件系统中消失?
-
是的。这些工件是快照,快照位于公共存储库组中。发布 settings.xml
-
我现在无法重现,但我也认为来自文件系统。