Forum Discussion

klitchev's avatar
klitchev
Occasional Contributor
13 years ago

SoapUI Maven artifact with missing dependencies

Hi,

I am using SoapUI Maven dependency to use SoapUITestCaseRunner into Java tests:

    <dependency>
<groupId>eviware</groupId>
<artifactId>soapui</artifactId>
<version>4.0.1</version>
</dependency>


The problem is that this dependency definition will only make Maven download soapui-4.0.1.jar and no other dependencies. Thus, when attempting to create new SoapUITestCaseRunner(), then the following exception occurs:

java.lang.ClassNotFoundException: org.apache.commons.cli.CommandLineParser
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 2 more

3 Replies

  • SmartBear_Suppo's avatar
    SmartBear_Suppo
    SmartBear Alumni (Retired)
    Hi,

    the 4.0.2-SNAPSHOT versions of the maven plugins should have all dependency issues fixed - please let us know otherwise.

    regards!

    /Ole
    SmartBear Software
  • Ole, maybe your answer does not fit to the question.

    OK, I checked the 4.0.2-SNAPSHOT versions of the maven plugins as you suggested, and it has the dependencies.

    But the OP refers to
    <artifactId>soapui</artifactId>
    , which is not a plugin, but a jar file to be refered to with a maven dependency.

    Now the pom of this soapui-4.0.2.jar still contains only the coordinates (groupId, artifactId, version), which makes development troublesome.

    Regards, Joachim

    // edited: fixed a reference