Ivy依赖冲突时如何让低版本的胜出

前端之家收集整理的这篇文章主要介绍了Ivy依赖冲突时如何让低版本的胜出前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

在相应的dependency里面加上force="true",就会强制使用这个低版本的jar,忽略其它间接依赖的高版本的;
参考 http://ant.apache.org/ivy/history/latest-milestone/ivyfile/dependency.html

Forcing revision

Finally,the dependency element also supports an a force attribute (since 0.8),which gives an indication
to conflicts manager to force the revision of a dependency to the one given here.
See conflicts manager for details.

原文链接:https://www.f2er.com/javaschema/286975.html

猜你在找的设计模式相关文章