微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

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.

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐