Forum Discussion

membersound's avatar
membersound
Occasional Contributor
13 years ago

Make eclipse + maven find soapui?

Hi,

how can I make eclipse + maven find soapui?
I have the following in my pom, but anyway eclipse still complains that com.eviware... cannot be found or resolved.


<!--Add the repository for where Maven can find the soapUI Plugin-->
<pluginRepositories>
<pluginRepository>
<id>eviwarePluginRepository</id>
<url>http://www.eviware.com/repository/maven2/</url>
</pluginRepository>
</pluginRepositories>
<build>
<plugins>
<plugin>
<groupId>eviware</groupId>
<artifactId>maven-soapui-plugin</artifactId>
<!--This is the version of soapUI to grab from plugin repo-->
<version>4.5.1</version>
<configuration>
<!--The location of your soapUI setting file-->
<projectFile>/home/test/test.xml</projectFile>
<!--Where to place the output of the run-->
<outputFolder>/home/test/output/</outputFolder>
<!--Make the jUnit results file-->
<junitReport>true</junitReport>
</configuration>
<executions>
<execution>
<id>soapUI</id>
<!--Run as part of the test phase in the Maven lifecycle-->
<phase>test</phase>
<goals>
<!-- You can now run the soapUI tests by calling "mvn eviware:maven-soapui-plugin:test" -->
<goal>test</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>


What's missing here?

1 Reply

  • dfuse's avatar
    dfuse
    Occasional Contributor
    Since you are using the maven plugin, where does Eclipse enter the equation?
    We added http://www.eviware.com/repository/maven2/ as a normal repository in our company's Nexus, and added
       <dependency>
    <groupId>eviware</groupId>
    <artifactId>maven-soapui-plugin</artifactId>
    <version>4.5.1</version>
    <scope>test</scope>
    </dependency>

    as a normal dependency (ie no plugin dependency). I prefer the use the junit runner instead of the maven plugin.
    We don't use the m2eclipse plugin but generate our Eclipse projects with mvn eclipse:eclipse, works fine for the soapui dependencies.