I followed the steps on installing the SoapUI plugin for Maven. Being new at this I was in need of some clarification from the instructions at:
http://www.soapui.org/plugin/maven2/index.htmlHere are my notes in case anyone else gets stuck.
Prior to using the plugin, add the eviware maven 2 repository to your project's pom file;
Add the following soapUI plugin to your pom.xml
Here is my project's pom.xml.
Please note that I moved the sample-soapui-project.xml file from the eviware SoapUI install directory to my local directory where my pom.xml file is located.
<?xml version="1.0" encoding="UTF-8"?>
<project>
<modelVersion>4.0.0</modelVersion>
<groupId>MavenSoapProject</groupId>
<artifactId>MavenSoapProject</artifactId>
<version>0.0.1-SNAPSHOT</version>
<description></description>
<build>
<plugins>
<plugin>
<groupId>eviware</groupId>
<artifactId>maven-soapui-plugin</artifactId>
<version>1.7.6</version>
<configuration>
<projectFile>sample-soapui-project.xml</projectFile>
<host>
http://127.0.0.1:8181</host>
</configuration>
</plugin>
</plugins>
</build>
<pluginRepositories>
<pluginRepository>
<id>eviwarePluginRepository</id>
<url>
http://www.eviware.com/repository/maven2/</url>
<releases>
<updatePolicy>daily</updatePolicy>
</releases>
<snapshots>
<updatePolicy>daily</updatePolicy>
</snapshots>
</pluginRepository>
</pluginRepositories>
</project>
Now the following maven commands will invoke the soapui sample project:
Run functional tests with
mvn eviware:maven-soapui-plugin:test
loadtests with
mvn eviware:maven-soapui-plugin:loadtest
and MockServices with
mvn eviware:maven-soapui-plugin:mock
Very nice and useful plugin. Especially when running inside eclipse.