Forum Discussion

dinesh707's avatar
dinesh707
New Contributor
10 years ago

How to configure pom to run SoapUI project from java

I need to run a project created from SoapUI though Java. By googling a bit I found the following solution, which works up to some level
....
<repositories>
<repository>
<id>eviware</id>
<url>http://www.eviware.com/repository/maven2/</url>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>eviware</groupId>
<artifactId>maven-soapui-plugin</artifactId>
<version>4.5.0</version>
</dependency>
....
But now when i run it from java i get the following error
[WsdlProject] Project 'ABCD - LOCAL' is from a newer version (5.0.0) of soapUI than this (4.5.0) and parts of it may be incompatible or incorrect. Saving this project with this version of soapUI may cause it to function differently.


But I coulden't find the 5.0.0 version for "eviware". Can any one suggest me the new repository settings and dependency settings in order to run this in version 5.0.0+

6 Replies

  • nmrao's avatar
    nmrao
    Champion Level 3
    check if the soapui project you were trying to run is created with soapui 5.0?
  • redfish4ktc2's avatar
    redfish4ktc2
    Super Contributor
    Hi
    As suggested by @nmrao, you cannot run project created/updated with a newer version of the SoapUI gui.

    About your issue to find newer maven plugin version, this is because the groupId and artifactId of the plugins have changed.
    As of version 4.5.2,

    • groupId: com.smartbear.soapui

    • artifactId for oss plugin: soapui-maven-plugin

    • artifactId for pro plugin: soapui-pro-maven-plugin

    See http://www.soapui.org/Test-Automation/m ... figuration
  • dinesh707's avatar
    dinesh707
    New Contributor
    It change the error from one in to another. But simply what I want to do is run the Java code below

    try{
    WsdlProject project = new WsdlProject(inputFile);
    for (TestSuite ts : project.getTestSuiteList()){
    for (TestProperty tp : ts.getPropertyList()){
    System.out.println("====== "+tp.getName());
    }
    }
    }catch(Exception e){
    e.printStackTrace();
    }

    Can any one help me with what should my pom contain ?
  • nmrao's avatar
    nmrao
    Champion Level 3
    I believe that your project must be created with the same version that is being used to run.
  • redfish4ktc2's avatar
    redfish4ktc2
    Super Contributor
    dinesh707 please post the error you get, otherwise, we cannot help you on this
    Additionnaly, as of version 4.5.2, you do not need to depend on the maven plugin, use soapui as artifactId (this artifact declares all its dependencies correctly)