Forum Discussion

AndyO's avatar
AndyO
Occasional Contributor
7 years ago
Solved

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


 

  • AndyO's avatar
    AndyO
    7 years ago

    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:

     

7 Replies

  • TanyaYatskovska's avatar
    TanyaYatskovska
    SmartBear Alumni (Retired)

    Hi Andy,

     

    I suppose that this error is related to the fact that an old plugin version was installed on the computer. Remove it from the .soapuios/plugins/ folder, or clear the entire folder and install the newest version again.

     

    As for this:

    A required class was missing while executing com.smartbear.soapui:soapui-maven-plugin:5.3.0:test: com/jgoodies/forms/layout/CellConstraints

    I was said that you need to add Dependency to your POM.

     

     

     

    • AndyO's avatar
      AndyO
      Occasional Contributor

      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:

       

      • jasonkilgrow's avatar
        jasonkilgrow
        New Contributor

        It might be helpful to note that this dependency should be added to the plugin dependencies and not the project dependencies in the pom.xml.

  • Hello AndyO how did you resolve jfxrt dependency?

     

    i have issue with maven when running mvn test

     

    [ERROR] Failed to execute goal com.smartbear.soapui:soapui-maven-plugin:5.3.0:test (default-cli) on project soapui-maven: Execution default-cli of goal com.smartbear.soapui:soapui-maven-plugin:5.3.0:test failed: Plugin com.smartbear.soapui:soapui-maven-plugin:5.3.0 or one of its dependencies could not be resolved: Could not find artifact javafx:jfxrt:jar:2.2 at specified path C:\Program Files\Java\jdk1.8.0_102\jre/lib/jfxrt.jar -> [Help 1]
    • AndyO's avatar
      AndyO
      Occasional Contributor

      <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/maven-v4_0_0.xsd">
      <modelVersion>4.0.0</modelVersion>
      <groupId>AVL.System</groupId>
      <artifactId>API-Tests</artifactId>
      <packaging>jar</packaging>
      <version>1.0-SNAPSHOT</version>
      <name>API Tests</name>
      <url>http://maven.apache.org</url>

      <pluginRepositories>
      <pluginRepository>
      <id>SmartBearPluginRepository</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>
      <configuration>
      </configuration>

      <dependencies>

      <dependency>
      <groupId>com.jgoodies</groupId>
      <artifactId>forms</artifactId>
      <version>1.0.7</version>
      </dependency>

      </dependencies>


      <executions>
      <execution>
      <id>SoapUI Tests</id>
      <phase>test</phase>
      <goals>
      <goal>test</goal>
      </goals>
      <configuration>
      <globalProperties>
      <value>ENV=TEST</value>
      </globalProperties>
      <projectFile>src/test/SoapUI/AVL-APIs-v2.xml</projectFile>
      <outputFolder>${basedir}/target/SoapUI-Report</outputFolder>
      <junitReport>true</junitReport>
      <exportAll>true</exportAll>
      <printReport>true</printReport>
      <environment>DEV</environment>
      <testFailIgnore>false</testFailIgnore>
      </configuration>
      </execution>
      </executions>
      </plugin>

      </plugins>
      </build>
      </project>

      • codehausss's avatar
        codehausss
        Contributor

        Hello AndyO, many thanks, my pom.xml working without error now

         

        another question, are you able to run specific testcase using maven command line by custom properties value in the testcases?

        something like tag in soapui pro but for soapui os?

         

         

  • tamnor's avatar
    tamnor
    Occasional Contributor

    I am getting the same error. I have added the soapui-maven-plugin-5.3.0.jar to my plugin SoapUI plugins repository.

     

    And also added the dependency below to POM file but I get the same error.

     

    <dependency>
                            <groupId>com.jgoodies</groupId>
                            <artifactId>forms</artifactId>
                            <version>1.0.7</version>
                        </dependency>