soapui-maven-plugin-5.3.0 does not work
I've just tried the latest
soapui-maven-plugin-5.3.0.jar
and it didn't work. I wonder if I'm missing out something?
Here is my pom.xml file:
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>com.smartbear.samples</groupId> <artifactId>soapui-maven-plugin</artifactId> <packaging>jar</packaging> <version>1.0-SNAPSHOT</version> <name>Maven 2 SoapUI Sample</name> <url>http://maven.apache.org</url> <pluginRepositories> <pluginRepository> <id>smartbear-sweden-plugin-repository</id> <url>http://www.soapui.org/repository/maven2/</url> </pluginRepository> </pluginRepositories> <build> <plugins> <plugin> <groupId>com.smartbear.soapui</groupId> <artifactId>soapui-maven-plugin</artifactId> <version>5.3.0</version> <executions> <execution> <phase>test</phase> <goals> <goal>test</goal> </goals> <configuration> <projectFile>src/AVL-APIs.xml</projectFile> <globalProperties> <value>ENV=DEV</value> </globalProperties> </configuration> </execution> </executions> </plugin> </plugins> </build> </project>
BUT it doesn't work:
$ mvn test
SoapUI 5.3.0 Maven2 TestCase Runner
2017-04-14 11:02:29,113 [main] INFO com.eviware.soapui.tools.SoapUITestCaseRunner - Setting global property [ENV] to [DEV]
11:02:29,235 WARN [SoapUI] Missing folder [/Andy/AVL-maven/ext] for external libraries
11:02:29,454 INFO [DefaultSoapUICore] initialized soapui-settings from [/Users/Andy/soapui-settings.xml]
11:02:30,559 INFO [PluginManager] Adding plugin from [/Users/Andy/.soapuios/plugins/ready-mqtt-plugin-dist.jar]
11:02:30,559 INFO [PluginManager] Adding plugin from [/Users/Andy/.soapuios/plugins/soapui-swagger-plugin-2.2-dist.jar]
11:02:31,416 ERROR [SoapUI] An error occurred [com.eviware.soapui.plugins.auto.factories.AutoImportMethodFactory], see error log for details
java.lang.ClassNotFoundException: com.eviware.soapui.plugins.auto.factories.AutoImportMethodFactory
at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:50)
at org.codehaus.plexus.classworlds.realm.ClassRealm.unsynchronizedLoadClass(ClassRealm.java:271)
at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:247)
at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:239)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:264)
at com.eviware.soapui.plugins.LoaderBase.loadAutoFactories(LoaderBase.java:112)
at com.eviware.soapui.plugins.LoaderBase.loadFactories(LoaderBase.java:80)
at com.eviware.soapui.plugins.PluginLoader.loadPluginFactories(PluginLoader.java:141)
at com.eviware.soapui.plugins.PluginLoader.loadPlugin(PluginLoader.java:104)
at com.eviware.soapui.plugins.PluginLoader.loadPlugin(PluginLoader.java:54)
at com.eviware.soapui.plugins.PluginManager.doInstallPlugin(PluginManager.java:141)
at com.eviware.soapui.plugins.PluginManager.access$600(PluginManager.java:43)
at com.eviware.soapui.plugins.PluginManager$LoadPluginsTask.computeSequentially(PluginManager.java:420)
at com.eviware.soapui.plugins.PluginManager$LoadPluginsTask.compute(PluginManager.java:377)
at com.eviware.soapui.plugins.PluginManager$LoadPluginsTask.compute(PluginManager.java:382)
at com.eviware.soapui.plugins.PluginManager$LoadPluginsTask.compute(PluginManager.java:365)
at java.util.concurrent.RecursiveTask.exec(RecursiveTask.java:94)
at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289)
at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056)
at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1692)
at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:157)
11:02:31,419 ERROR [SoapUI] An error occurred [com.eviware.soapui.plugins.auto.factories.AutoDiscoveryMethodFactory], see error log for details
java.lang.ClassNotFoundException: com.eviware.soapui.plugins.auto.factories.AutoDiscoveryMethodFactory
at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:50)
at org.codehaus.plexus.classworlds.realm.ClassRealm.unsynchronizedLoadClass(ClassRealm.java:271)
at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:247)
at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:239)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:264)
at com.eviware.soapui.plugins.LoaderBase.loadAutoFactories(LoaderBase.java:112)
at com.eviware.soapui.plugins.LoaderBase.loadFactories(LoaderBase.java:80)
at com.eviware.soapui.plugins.PluginLoader.loadPluginFactories(PluginLoader.java:141)
at com.eviware.soapui.plugins.PluginLoader.loadPlugin(PluginLoader.java:104)
at com.eviware.soapui.plugins.PluginLoader.loadPlugin(PluginLoader.java:54)
at com.eviware.soapui.plugins.PluginManager.doInstallPlugin(PluginManager.java:141)
at com.eviware.soapui.plugins.PluginManager.access$600(PluginManager.java:43)
at com.eviware.soapui.plugins.PluginManager$LoadPluginsTask.computeSequentially(PluginManager.java:420)
at com.eviware.soapui.plugins.PluginManager$LoadPluginsTask.compute(PluginManager.java:377)
at com.eviware.soapui.plugins.PluginManager$LoadPluginsTask.compute(PluginManager.java:382)
at com.eviware.soapui.plugins.PluginManager$LoadPluginsTask.compute(PluginManager.java:365)
at java.util.concurrent.RecursiveTask.exec(RecursiveTask.java:94)
at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289)
at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056)
at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1692)
at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:157)
11:02:31,431 INFO [PluginManager] Adding plugin from [/Users/Andy/.soapuios/plugins/ready-uxm-plugin-1.0.1-dist.jar]
11:02:31,493 ERROR [SoapUI] An error occurred [com.eviware.soapui.plugins.auto.factories.AutoImportMethodFactory], see error log for details
java.lang.ClassNotFoundException: com.eviware.soapui.plugins.auto.factories.AutoImportMethodFactory
at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:50)
at org.codehaus.plexus.classworlds.realm.ClassRealm.unsynchronizedLoadClass(ClassRealm.java:271)
at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:247)
at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:239)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:264)
at com.eviware.soapui.plugins.LoaderBase.loadAutoFactories(LoaderBase.java:112)
at com.eviware.soapui.plugins.LoaderBase.loadFactories(LoaderBase.java:80)
at com.eviware.soapui.plugins.PluginLoader.loadPluginFactories(PluginLoader.java:141)
at com.eviware.soapui.plugins.PluginLoader.loadPlugin(PluginLoader.java:104)
at com.eviware.soapui.plugins.PluginLoader.loadPlugin(PluginLoader.java:54)
at com.eviware.soapui.plugins.PluginManager.doInstallPlugin(PluginManager.java:141)
at com.eviware.soapui.plugins.PluginManager.access$600(PluginManager.java:43)
at com.eviware.soapui.plugins.PluginManager$LoadPluginsTask.computeSequentially(PluginManager.java:420)
at com.eviware.soapui.plugins.PluginManager$LoadPluginsTask.compute(PluginManager.java:377)
at com.eviware.soapui.plugins.PluginManager$LoadPluginsTask.compute(PluginManager.java:365)
at java.util.concurrent.RecursiveTask.exec(RecursiveTask.java:94)
at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289)
at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056)
at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1692)
at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:157)
11:02:31,494 ERROR [SoapUI] An error occurred [com.eviware.soapui.plugins.auto.factories.AutoDiscoveryMethodFactory], see error log for details
java.lang.ClassNotFoundException: com.eviware.soapui.plugins.auto.factories.AutoDiscoveryMethodFactory
at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:50)
at org.codehaus.plexus.classworlds.realm.ClassRealm.unsynchronizedLoadClass(ClassRealm.java:271)
at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:247)
at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:239)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:264)
at com.eviware.soapui.plugins.LoaderBase.loadAutoFactories(LoaderBase.java:112)
at com.eviware.soapui.plugins.LoaderBase.loadFactories(LoaderBase.java:80)
at com.eviware.soapui.plugins.PluginLoader.loadPluginFactories(PluginLoader.java:141)
at com.eviware.soapui.plugins.PluginLoader.loadPlugin(PluginLoader.java:104)
at com.eviware.soapui.plugins.PluginLoader.loadPlugin(PluginLoader.java:54)
at com.eviware.soapui.plugins.PluginManager.doInstallPlugin(PluginManager.java:141)
at com.eviware.soapui.plugins.PluginManager.access$600(PluginManager.java:43)
at com.eviware.soapui.plugins.PluginManager$LoadPluginsTask.computeSequentially(PluginManager.java:420)
at com.eviware.soapui.plugins.PluginManager$LoadPluginsTask.compute(PluginManager.java:377)
at com.eviware.soapui.plugins.PluginManager$LoadPluginsTask.compute(PluginManager.java:365)
at java.util.concurrent.RecursiveTask.exec(RecursiveTask.java:94)
at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289)
at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056)
at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1692)
at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:157)
11:02:31,506 INFO [PluginManager] Adding plugin from [/Users/Andy/.soapuios/plugins/readyapi-postman-1.0.1.jar]
11:02:31,852 ERROR [SoapUI] An error occurred [com.eviware.soapui.plugins.auto.factories.AutoImportMethodFactory], see error log for details
java.lang.ClassNotFoundException: com.eviware.soapui.plugins.auto.factories.AutoImportMethodFactory
at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:50)
at org.codehaus.plexus.classworlds.realm.ClassRealm.unsynchronizedLoadClass(ClassRealm.java:271)
at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:247)
at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:239)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:264)
at com.eviware.soapui.plugins.LoaderBase.loadAutoFactories(LoaderBase.java:112)
at com.eviware.soapui.plugins.LoaderBase.loadFactories(LoaderBase.java:80)
at com.eviware.soapui.plugins.PluginLoader.loadPluginFactories(PluginLoader.java:141)
at com.eviware.soapui.plugins.PluginLoader.loadPlugin(PluginLoader.java:104)
at com.eviware.soapui.plugins.PluginLoader.loadPlugin(PluginLoader.java:54)
at com.eviware.soapui.plugins.PluginManager.doInstallPlugin(PluginManager.java:141)
at com.eviware.soapui.plugins.PluginManager.access$600(PluginManager.java:43)
at com.eviware.soapui.plugins.PluginManager$LoadPluginsTask.computeSequentially(PluginManager.java:420)
at com.eviware.soapui.plugins.PluginManager$LoadPluginsTask.compute(PluginManager.java:377)
at com.eviware.soapui.plugins.PluginManager$LoadPluginsTask.compute(PluginManager.java:365)
at java.util.concurrent.RecursiveTask.exec(RecursiveTask.java:94)
at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289)
at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056)
at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1692)
at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:157)
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4.695 s
[INFO] Finished at: 2017-04-14T11:02:32+10:00
[INFO] Final Memory: 28M/910M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.smartbear.soapui:soapui-maven-plugin:5.3.0:test (default) on project soapui-maven-plugin: Execution default of goal com.smartbear.soapui:soapui-maven-plugin:5.3.0:test failed: A required class was missing while executing com.smartbear.soapui:soapui-maven-plugin:5.3.0:test: com/jgoodies/forms/layout/CellConstraints
[ERROR] -----------------------------------------------------: com.jgoodies.forms.layout.CellConstraints
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginContainerException
Deleting previous plugins didn't help.
What helped though: someone else was having similar problem but with v. 5.2.1: http://frmchandan.blogspot.com.au/2017/03/dependency-error-soapui-521.html
...so I added this dependency into pom.xml file:
<dependency> <groupId>com.jgoodies</groupId> <artifactId>forms</artifactId> <version>1.0.7</version> </dependency>
and that fixed it :smileywink: