如何禁用 Ivy 对下载的 .pom 文件的 SHA1 检查?
由于以下错误,我当前的 Ivy 配置无法解决:
problem while downloading module descriptor:
http://repo1.maven.org/maven2/commons-fileupload/commons-fileupload/1.2.2/commons-fileupload-1.2.2.pom:
invalid sha1:
expected=ad3fda4adc95eb0d061341228cc94845ddb9a6fe
computed=0ce5d4a03b07c8b00ab60252e5cacdc708a4e6d8
How can I disable (or work around) Ivy's check of the SHA1 checksum?
My current Ivy configuration fails to resolve because of this error:
problem while downloading module descriptor:
http://repo1.maven.org/maven2/commons-fileupload/commons-fileupload/1.2.2/commons-fileupload-1.2.2.pom:
invalid sha1:
expected=ad3fda4adc95eb0d061341228cc94845ddb9a6fe
computed=0ce5d4a03b07c8b00ab60252e5cacdc708a4e6d8
How can I disable (or work around) Ivy's check of the SHA1 checksum?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我认为您可以通过将属性设置为空字符串来告诉解析器忽略校验和。
http://ant.apache.org/ivy/history/ latest-milestone/settings/resolvers.html
或者您可以通过将属性 ivy.checksums 设置为“”来全局定义它:
来自文档 (http://ant.apache.org/ivy/history/latest-里程碑/concept.html#checksum):
I think you could tell your resolver to ignore checksums by setting the property to an empty String.
http://ant.apache.org/ivy/history/latest-milestone/settings/resolvers.html
Or you could define it globally by setting the attribute ivy.checksums to "":
From the Documentation (http://ant.apache.org/ivy/history/latest-milestone/concept.html#checksum):
我刚刚发现关于校验和问题:
Maven Central 中的校验和损坏
I just found this about the checksum issue:
Corrupt checksum in Maven Central