Я хочу использовать soap пользовательский интерфейс в моем groovy приложении. Сборка в порядке, но когда я запускаю приложение, я получаю исключение:
Information:Groovyc: While compiling WsdlParser_main:java.lang.NoClassDefFoundError: org/apache/xmlbeans/XmlObject needed for com.eviware.soapui.config.ModelItemConfig needed for com.eviware.soapui.config.AbstractRequestConfig
at org.jetbrains.jps.incremental.groovy.JointCompilationClassLoader._defineClass(JointCompilationClassLoader.java:41)
at com.intellij.util.lang.UrlClassLoader.defineClass(UrlClassLoader.java:355)
Caused by: java.lang.NoClassDefFoundError: org/apache/xmlbeans/XmlObject needed for com.eviware.soapui.config.ModelItemConfig
at org.jetbrains.jps.incremental.groovy.JointCompilationClassLoader._defineClass(JointCompilationClassLoader.java:41)
Мои настройки gradle:
repositories {
mavenCentral()
maven { url "http://smartbearsoftware.com/repository/maven2" }
}
dependencies {
def soapUiNotNeeded = {
exclude group: 'com.jgoodies', module: 'forms'
exclude group: 'com.jgoodies', module: 'looks'
exclude group: 'com.jgoodies', module: 'bindings'
exclude group: 'javax.jms', module: 'jms'
}
compile 'org.codehaus.groovy:groovy-all:2.3.11'
compile group: 'com.smartbear.soapui', name: 'soapui', version: '5.0.0' ,soapUiNotNeeded
// https://mvnrepository.com/artifact/org.apache.xmlbeans/xmlbeans
compile group: 'org.apache.xmlbeans', name: 'xmlbeans', version: '2.3.0'
testCompile group: 'junit', name: 'junit', version: '4.12'
}
Мой код для Wsdl Project прост:
WsdlProject project = new WsdlProject()