Forum Discussion

lolotank's avatar
lolotank
New Contributor
13 years ago

Automate SOAP UI with maven : dependency problem

Hi all,

I am trying to launch my Soap Ui project from eclipse with maven. These instructions help me to create the pom.xml :

http://technology.amis.nl/2008/03/26/au ... ith-maven/

The soap ui projet can be launched correctly with Soap UI software.
I am using this pom.xml in my maven project:


<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>
<parent>
<groupId>group</groupId>
<artifactId>soap</artifactId>
<version>1.0.05-SNAPSHOT</version>
</parent>

<groupId>group.soap</groupId>
<artifactId> soapUI</artifactId>
<name>soapUI</name>
<description> soapUI – Automate tests </description>


<pluginRepositories>
<pluginRepository>
<id>eviwarePluginRepository</id>
<url>http://www.eviware.com/repository/maven2/</url>
</pluginRepository>
</pluginRepositories>

<properties>
<hostValue>phi.test.dev:9000</hostValue>
</properties>


<build>
<plugins>
<plugin>
<groupId>eviware</groupId>
<artifactId>maven-soapui-plugin</artifactId>
<version>3.6.1</version>
<executions>
<execution>
<phase>verify</phase>
<id>soapui-tests</id>
<configuration>
<projectFile>${project.build.directory}src/test/soapui/base-soapui-project.xml</projectFile>
<host>${hostValue}</host>
<outputFolder>${project.build.directory}/target/soapui</outputFolder>
<junitReport>true</junitReport>
<exportwAll>true</exportwAll>
<printReport>false</printReport>
</configuration>
<goals>
<goal>test</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>

<reporting>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-report-plugin</artifactId>
<configuration>
<outputDirectory>target/site/soapui</outputDirectory>
<reportsDirectories>
</reportsDirectories>
</configuration>
</plugin>
</plugins>
</reporting>
</project>


I got the following error when i launch the command mvn install :


Failed to execute goal eviware:maven-soapui-plugin:3.6.1:test (soapui-tests) on project base-soapUI: Execution soapui-tests of goal eviware:maven-soapui-plugin:3.6.1:test failed: Plugin eviware:maven-soapui-plugin:3.6.1 or one of its dependencies could not be resolved: Could not transfer artifact eviware:soapui:jar:3.6 from/to eviwarePluginRepository (http://www.eviware.com/repository/maven2/): Error transferring file: http://www.eviware.com: Unknown host http://www.eviware.com -> [Help 1]
[ERROR]

How can I fix this issue ?

Regards

3 Replies

  • redfish4ktc2's avatar
    redfish4ktc2
    Super Contributor
    hi, do you have any issue when downloading artifacts from maven central?
    do you need to configure a proxy?
  • lolotank's avatar
    lolotank
    New Contributor
    Thanks for the reply,

    I had to manually download soapui-3.6.jar and put it into maven repo in order to fix this issue.

    Regards
  • redfish4ktc2's avatar
    redfish4ktc2
    Super Contributor
    Ok, great
    I have seen you use a very old version (3.6.1) of the plugin. Maybe for some reason you are locked to this version and cannot use the last available one (4.5.1)
    Be aware that the 3.6.1 maven plugin use soapui 3.6 instead of 3.6.1 which leads to some issues

    See https://github.com/redfish4ktc/maven-so ... /issues/37
    There are some workarounds: force the use of the 3.6.1 dependencies when running the plugin