Grails - 试图包含HTPPBuilder - 链接错误 [英] Grails - attempting to include HTPPBuilder - Linkage error
本文介绍了Grails - 试图包含HTPPBuilder - 链接错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当我运行 grails install-dependency
时,我得到了这个。
java.lang.LinkageError:加载器约束违例:加载器(< bootloader>的实例)以前为$ b $加载不同类型的名称为org / xml / sax / SAXParseException
有什么不对?
存储库{
grailsPlugins()
grailsHome()
mavenLocal()
mavenCentral()
}
依赖项{
runtime'org.codehaus.groovy.modules.http -builder:http-builder:0.5.0'
}
解决方案看起来像一个xml-apis冲突,
尝试
runtime'org.codehaus.groovy.modules.http-builder:http-builder:0.5.0'{
excluded''xml-apis'
}
}
When I run grails install-dependency
, I get this.
java.lang.LinkageError: loader constraint violation: loader (instance of <bootloader>) previously initiated loading for
a different type with name "org/xml/sax/SAXParseException"
What's wrong? I've not used grails dependency management before, and this is rather cryptic.
repositories {
grailsPlugins()
grailsHome()
mavenLocal()
mavenCentral()
}
dependencies {
runtime 'org.codehaus.groovy.modules.http-builder:http-builder:0.5.0'
}
解决方案
Looks like an xml-apis clash,
Try
dependencies {
runtime 'org.codehaus.groovy.modules.http-builder:http-builder:0.5.0'{
excludes 'xml-apis'
}
}
这篇关于Grails - 试图包含HTPPBuilder - 链接错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文