当我运行grails install-dependency
时,我得到了。
java.lang.LinkageError: loader constraint violation: loader (instance of <bootloader>) previously initiated loading for
a different type with name "org/xml/sax/SAXParseException"
怎么了?我以前没有使用过grails依赖关系管理,这相当神秘。
repositories {
grailsPlugins()
grailsHome()
mavenLocal()
mavenCentral()
}
dependencies {
runtime 'org.codehaus.groovy.modules.http-builder:http-builder:0.5.0'
}
最佳答案
看起来像xml-apis冲突,
尝试
dependencies {
runtime 'org.codehaus.groovy.modules.http-builder:http-builder:0.5.0'{
excludes 'xml-apis'
}
}
关于grails - Grails-尝试包含HTPPBuilder-链接错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2762439/