Grails - attempting to include HTPPBuilder - Linkage error

末鹿安然 提交于 2019-12-11 23:25:42

问题


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'
}

回答1:


Looks like an xml-apis clash,

Try

dependencies {
     runtime 'org.codehaus.groovy.modules.http-builder:http-builder:0.5.0'{
         excludes 'xml-apis'
     }
}


来源:https://stackoverflow.com/questions/2762439/grails-attempting-to-include-htppbuilder-linkage-error

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!