在我的一个应用程序中,我必须将 geb 与 grails 一起使用。我安装了 geb 插件并添加了依赖 selenium 独立 jar。
现在的问题是在我清理或编译时出现如下错误
交互模式退出并出现错误:加载器约束违规:当解析被覆盖的方法时,当前类的类"org.apache.xerces.jaxp.SAXParserImpl.getXMLReader()Lorg/xml/sax/XMLReader;"
加载器及其超类加载器()对于签名中使用的类型具有不同的类对象(使用 --stacktrace 查看完整跟踪)(instance of org/codehaus/groovy/grails/cli/support/GrailsRootLoader)
org/apache/xerces/jaxp/SAXParserImpl,
instance of <bootloader>
org/xml/sax/XMLReader