0

当我跑步时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'
}
4

1 回答 1

3

看起来像 xml-apis 冲突,

尝试

dependencies {
     runtime 'org.codehaus.groovy.modules.http-builder:http-builder:0.5.0'{
         excludes 'xml-apis'
     }
}
于 2010-05-04T02:27:17.337 回答