Forum Discussion

larsn's avatar
larsn
Contributor
11 years ago

Unable to run project via maven

We recently upgraded to SoapUI Pro v5.1.2 and now I'm trying to run our tests with the SoapUI v5.1.2 pro maven plugin but I'm getting this error:

...
[INFO] [soapui-pro:test {execution: ProductCatalog}]
SoapUI Pro 5.1.2 Maven2 TestCase Runner
2014-11-25 14:11:00,760 [main] INFO com.eviware.soapui.impl.coverage.report.CoverageBuilder - constructor
Setting soapui.logroot value /home/larsn/tmp/synchronicity-automation/target/surefire-reports/ProductCatalog/
14:11:01,250 INFO [DefaultSoapUICore] initialized soapui-settings from [/home/larsn/soapui-settings.xml]
14:11:01,547 INFO [SoapUIProGroovyScriptEngineFactory] Setting Script Library to [/opt/soapui/bin/scripts]
[FATAL ERROR] com.eviware.soapui.maven2.TestMojo#execute() caused a linkage error (java.lang.NoClassDefFoundError) and may be out-of-date. Check the realms:
[FATAL ERROR] Plugin realm = app0.child-container[com.smartbear.soapui:soapui-pro-maven-plugin:5.1.2]
urls[0] = file:/home/larsn/.m2/repository/com/smartbear/soapui/soapui-pro-maven-plugin/5.1.2/soapui-pro-maven-plugin-5.1.2.jar
...

What can I do to work around this error?
  • Adding more logs from the error:

    ...
    urls[95] = file:/home/lpnordi/.m2/repository/net/sourceforge/jexcelapi/jxl/2.6.12/jxl-2.6.12.jar
    urls[96] = file:/home/lpnordi/.m2/repository/org/codehaus/plexus/plexus-utils/1.5.15/plexus-utils-1.5.15.jar
    [FATAL ERROR] Container realm = plexus.core
    urls[0] = file:/usr/share/maven2/lib/maven-debian-uber.jar
    [INFO] ------------------------------------------------------------------------
    [ERROR] FATAL ERROR
    [INFO] ------------------------------------------------------------------------
    [INFO] org/reflections/Configuration
    org.reflections.Configuration
    [INFO] ------------------------------------------------------------------------
    [INFO] Trace
    java.lang.NoClassDefFoundError: org/reflections/Configuration
    at com.eviware.soapui.plugins.PluginManager.<init>(SourceFile:51)
  • DMc-Cabe's avatar
    DMc-Cabe
    Occasional Contributor
    this worked for me

    <groupId>com.smartbear.soapui</groupId>
    <artifactId>soapui-maven-plugin</artifactId>
    <version>5.1.2</version>
    <configuration>
    <projectFile>soapui-project.xml</projectFile>
    <junitReport>true</junitReport>
    <printReport>true</printReport>
    <testFailIgnore>true</testFailIgnore>
    </configuration>