Apache Maven-降级到以前的快照依赖版本不起作用
我有一个Maven项目,该项目注射了一个快照依赖项2.0.0-snapshot,该项目中存在于文物中。现在,依赖性项目的POM版本已更新为2.0.1-snapshot,它是(从Jenkins的作业中)构建的,并且此快照也在文物中。因此,现在Artifactory具有2.0.0-snapshot和2.0.1-Snapshot的版本,并且在本地M2存储库上也都有两个版本。
主项目将快照依赖项更新为2.0.1-snapshot,并且能够看到2.0.1-Snapshot的新更改。
现在,代码更改是在2.0.0-snapshot中进行的,它是在文物中构建和更新的,但是现在,当主项目恢复到2.0.0-snapshot并使用-u(force Update update快照)构建时,它将无法看到新的新更改以2.0.0-snapshot完成。
谁能建议这里有什么问题?
I have a maven project which is injected with a SNAPSHOT dependency 2.0.0-SNAPSHOT which is there in artifactory. Now dependency project's pom version is updated to 2.0.1-SNAPSHOT and it was built (from a jenkins job) and this snapshot is also there in artifactory. So now artifactory has both the versions 2.0.0-SNAPSHOT and 2.0.1-SNAPSHOT and on local m2 repository also both versions are there.
Main project updated the SNAPSHOT dependency to 2.0.1-SNAPSHOT and it is able to see the new changes in 2.0.1-SNAPSHOT.
Now code changes are made in 2.0.0-SNAPSHOT and it was build and updated in artifactory but now when main project reverted back to 2.0.0-SNAPSHOT and built with -U (force update snapshots), it is not able to see new change done in 2.0.0-SNAPSHOT.
Can anyone suggest what could be wrong here ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论