简体   繁体   English

sts/eclipse 锁定版本化的 jar,因此 ivy 无法解决依赖关系

[英]sts/eclipse lock the versioned jar and hence ivy does not resolve dependency

In my Project, I am using snapshot revision of jar referencing to other project like:在我的项目中,我使用 jar 的快照版本引用其他项目,例如:

< dependency org= "com.myproject" name="edo-common" rev="3.0.0-SNAPSHOT" transitive="false" changing="true"> < dependency org= "com.myproject" name="edo-common" rev="3.0.0-SNAPSHOT" transitive="false" changing="true">

When i try to resolve ivy, it tries to delete old versioned jar and replace it by new one.当我尝试解析 ivy 时,它会尝试删除旧版本 jar 并将其替换为新版本。 But STS locks the versioned jar and does not allow to remove the old jar. So ivy gives error of not resolving the dependency.但是 STS 锁定了版本号 jar 并且不允许删除旧的 jar。因此 ivy 给出了未解析依赖项的错误。

What could be the way so that STS/eclipse does not lock the jar?有什么办法可以让 STS/eclipse 不锁定 jar?

Please help.请帮忙。

I got the solution by updating the ivy version and I got one option there as: delete old retreive artifacts in classpath of ivy.xml And also if you want to load jar from your lib you can select the option as: Build the classpath with: select retreived artifacts It will not lock the jar while taking the updates.我通过更新 ivy 版本得到了解决方案,我在那里得到了一个选项:删除 ivy.xml 类路径中的旧检索工件而且如果你想从你的 lib 加载 jar 你可以 select 选项为:构建类路径: select 检索到的工件在进行更新时不会锁定 jar。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM