Forum Discussion

tdrury's avatar
tdrury
Contributor
15 years ago

maven and multiple projects

I cannot get the maven plugin to run test suites from multiple projects. I've seen this thread: viewtopic.php?f=14&t=5381&p=17861&hilit=maven+multiple+projects&sid=6ec23825ae86359d1fc4e91865fc130d#p16965

and tried that strategy. Here is the POM I use:

<build>
<plugins>
<plugin>
<groupId>eviware</groupId>
<artifactId>maven-soapui-pro-plugin</artifactId>
<version>3.6.1</version>
<executions>
<execution>
<id>ActivityTests</id>
<configuration>
<projectFile>src/test/resources/me-activity-soapui-project.xml</projectFile>
</configuration>
</execution>
<execution>
<id>StatusTests</id>
<configuration>
<projectFile>src/test/resources/me-status-soapui-project.xml</projectFile>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>


When using the 3.6.1 non-pro plugin (remove "-pro" from plugin ArtifactId above), nothing appears to happen - no tests are executed. When I use the pro plugin I get the error that "File [d:\<snip>\me.test.webservices-soapui-project.xml] does not exist" which is correct because this is not the project name - it attempted to create the project name from my POM's ArtifactId because it evidently didn't find it in the /build/plugins/plugin/configuration section.

-tim

1 Reply

  • bmgriner's avatar
    bmgriner
    Frequent Contributor
    If you are having issues with the plugin finding the project file...use the full path to the project file first and see if that works. If it works then you know that it is the relative path that is the issue.

    I am also noticing that you are not defining a maven phase to run the maven soapui plugin during. You also are not defining the goal in the maven soapui plugin that you want to run.

    ie.
    <executions>
    <execution>
    <id>qa</id>
    <phase>integration-test</phase>
    <configuration>
    <projectFile>${pom.basedir}/src/test/soapui/MyProject-soapui-project.xml</projectFile>
    </configuration>
    <goals>
    <goal>test</goal>
    </goals>
    </execution>
    </executions>