26 September 2007 - 1.7.6 | home user-guide eclipse jbossws intellij netbeans maven 1.X/2.X PDF files forums bugs sourceforge

Home
Getting Started
User Guide
IDE/Tool Plugins

- Maven Plugins
  - Maven 1.X Plugin
    - Goals
    - Properties
  - Maven 2.X Plugin
    - Goals
    - Properties
- NetBeans Plugin
  - Installation
  - Project Integration
- IntelliJ Plugin
- Eclipse Plugin
  - soapUI Nature
- JBossWS Plugin
  - New in 2.0.0 beta2
  - Getting Started
  - Publishing Web Services
    - Publish POJO Example
  - Consuming a Web Service
  - Implementing a Web Service
    - Implement WSDL Example
  - Web Service Annotations
    - EJB3/WS Annotate Example

Search soapUI site
Project Documentation

- About soapUI
- Project Info
- Project Reports

## soapUI maven 2.X plugin

### Usage

Prior to using the plugin, add the eviware maven 2 repository either to your project or settings.xml;

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

Then, add the soapUI plugin to your pom.xml

    <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>

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

The plugin will load the specified project file and run all TestCases available in all TestSuites. If you want to narrow down which TestSuites/TestCases/LoadTest to run, use the `testSuite`, `testCase` and `loadTest` properties for that purpose.

### Integrated Tools

If you configure any of the integrated code-generation tools in soapUI for an interface in your project, you can invoke this code-generation functionality with

    mvn eviware:maven-soapui-plugin:tool

which could be configured in the maven 2 build process as part of the generate-sources step:

    <plugins>
    	<plugin>
    		<groupId>eviware</groupId>
    		<artifactId>maven-soapui-plugin</artifactId>
    		<version>1.7</version>
    		<configuration>
    	   		<projectFile>sample-soapui-project.xml</projectFile>
    	   		<testSuite>OleTest</testSuite>
    	   		<iface>IOrderService</iface>
    	   		<tool>wsi,axis1,axis2</tool>
    	   		<settingsFile>C:\workspace\core\soapui-settings.xml</settingsFile>
    	 		</configuration>
    		<executions>
    	    	<execution>
    	      		<phase>generate-sources</phase>
    	      		<goals>
    	        		<goal>generate</goal>
    	      		</goals>
    	    	</execution>
    	  	</executions>
    	</plugin>
    </plugins>

Several tools can be specified in a comma-seperated list, so the above example would run both WS-I reports and configured code generation for both Axis1 and Axis2. Also, the soapUI settings file has been specified since it contains tool paths and global WS-I settings

Next: maven 2.X plugin goals