shchavla
13 years agoNew Contributor
pom.xml (soapui-pro 4.5, 4.0 & maven 3 integration)
Hello Everyone
spent couple days to fix proper pom.xml to run tests created on soapui pro version (4.5.0) through maven.
results:
You need to configure maven settings.xml as it specified on SOAPUI Maven integration page: http://www.soapui.org/Test-Automation/maven-2x.html#1-basic-configuration
here's pom.xml which I've found here http://blog.hlyh.dk/2011/10/using-soapui-maven-integration.html (thanks Henrik for it):
then go to you pom.xml location and type this in the command line:
hope it helps
good luck.
spent couple days to fix proper pom.xml to run tests created on soapui pro version (4.5.0) through maven.
results:
You need to configure maven settings.xml as it specified on SOAPUI Maven integration page: http://www.soapui.org/Test-Automation/maven-2x.html#1-basic-configuration
<?xml version="1.0" encoding="utf-8"?>
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
http://maven.apache.org/xsd/settings-1.0.0.xsd">
<profiles>
<profile>
<pluginRepositories>
<pluginRepository>
<id>codehausPluginRepository</id>
<url>http://repo1.maven.org/maven2/org/codehaus/mojo/</url>
</pluginRepository>
<pluginRepository>
<id>mvnPluginRepository</id>
<url>mirrors.ibiblio.org/pub/mirrors/maven/mule/dependencies/maven2</url>
</pluginRepository>
<pluginRepository>
<id>eviwarePluginRepository</id>
<url>http://www.eviware.com/repository/maven2/</url>
</pluginRepository>
</pluginRepositories>
</profile>
</profiles>
</settings>
here's pom.xml which I've found here http://blog.hlyh.dk/2011/10/using-soapui-maven-integration.html (thanks Henrik for it):
<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>none</groupId>
<artifactId>soapui-maven2-plugin</artifactId>
<packaging>jar</packaging>
<version>1.0-SNAPSHOT</version>
<url>http://maven.apache.org</url>
<pluginRepositories>
<pluginRepository>
<id>eviwarePluginRepository</id>
<url>http://www.eviware.com/repository/maven2/</url>
</pluginRepository>
<pluginRepository>
<id>mvnPluginRepository</id>
<url>http://mirrors.ibiblio.org/pub/mirrors/maven/mule/dependencies/maven2/</url>
</pluginRepository>
<pluginRepository>
<id>codehausPluginRepository</id>
<url>https://nexus.codehaus.org/content/groups/snapshots-group/org/codehaus/mojo/</url>
</pluginRepository>
</pluginRepositories>
<build>
<plugins>
<plugin>
<groupId>eviware</groupId>
<artifactId>maven-soapui-pro-plugin</artifactId>
<version>4.0.0</version>
<dependencies>
<dependency>
<groupId>oracle</groupId>
<artifactId>ojdbc14</artifactId>
<version>10.2.0.2</version>
</dependency>
<dependency>
<groupId>jgoodies</groupId>
<artifactId>looks</artifactId>
<version>2.2.0</version>
</dependency>
<dependency>
<groupId>fife</groupId>
<artifactId>rsyntaxtextarea</artifactId>
<version>1.3.4</version>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.4</version>
</dependency>
</dependencies>
<executions>
<execution>
<phase>test</phase>
<goals>
<goal>test</goal>
</goals>
<configuration>
<projectFile>soapui-maven2-plugin-soapui-project.xml</projectFile>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
soapui-maven2-plugin-soapui-project.xmlthere is your soapui-pro project file.
then go to you pom.xml location and type this in the command line:
mvn eviware:maven-soapui-pro-plugin:test
hope it helps
good luck.