我们有不同的环境同时构建不同项目的相同快照版本。我们可以分离 maven 缓存,因此这些快照安装在不同的位置并且不会相互影响。
出于某种原因,虽然我在构建子模块时收到以下错误消息:
[FATAL] Non-resolvable parent POM: Failure to find com.sample:parent-pom:pom:4.0-SNAPSHOT in http://localhost/nexus/content/groups/public/ was cached in the local repository, resolution will not be reattempted until the update interval of nexus has elapsed or updates are forced and 'parent.relativePath' points at wrong local POM @ line 4, column 10
我无法在nexus中安装快照,也无法指向文件系统中的父pom。
快照已经在缓存中,所以我只是继续使用它而不是失败。想法?
更新:
这看起来像一个 jenkins maven 问题,如果我在 jenkins 机器上本地启动 mvn,相同的配置和工作区,它可以工作。我不知道如何检查詹金斯实际上在做什么。