Ask a Question

multiple projects executing using maven plug in for ready!api

vinesataris
Visitor

multiple projects executing using maven plug in for ready!api

Hi,

 

My project requires me to execute multiple xmls from Maven (pom.xml) for Ready! API. I have a total of 9 soap xml files that I already have added to my maven pom.xml, and attempting to execute. But only the first project execute while the other 8 are not executed. I searched for answers in different forums and all point me to the same format of pom.xml that I already have. Could someone help me with that?

 

My pom.xml:

 

<?xml version="1.0" encoding="UTF-8"?>
<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>com.smartbear.samples</groupId>
<artifactId>ready-api-maven-plugin</artifactId>
<packaging>jar</packaging>
<version>1.3.1</version>
<name>Maven 3 SoapUI Sample</name>
<url>http://maven.apache.org</url>

<repositories>
<repository>
<id>repository.jboss.org-public</id>
<name>JBoss.org Maven repository</name>
<url>https://repository.jboss.org/nexus/content/groups/public</url>
</repository>

<repository>
<id>SmartBear Sweden Repository</id>
<url>http://www.soapui.org/repository/maven2</url>
</repository>
<repository>
<id>maven2-repository.java.net</id>
<name>Java.net Repository for Maven</name>
<url>http://java.net/projects/maven-repository/</url>
<layout>default</layout>
</repository>
<repository>
<id>eviwareRepository</id>
<url>http://www.eviware.com/repository/maven2
</url>
</repository>

</repositories>

<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.11</version>
<scope>test</scope>
</dependency>
</dependencies>


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

<build>
<plugins>

<plugin>
<groupId>com.smartbear</groupId>
<artifactId>ready-api-maven-plugin</artifactId>
<version>1.9.0</version>
<dependencies>
<dependency>
<groupId>org.apache.geronimo.specs</groupId>
<artifactId>geronimo-jms_1.1_spec</artifactId>
<version>1.1.1</version>
</dependency>
</dependencies>
<executions>
<execution>

<id>Service1</id>
<phase>test-compile</phase>
<goals>
<goal>test</goal>
</goals>
<configuration>
<projectFile>./src/test/java/service1.xml</projectFile>
<outputFolder>${project.basedir}/target/surefire-reports</outputFolder>
<junitReport>true</junitReport>
</configuration>
</execution>

<execution>
<id>Service2</id>
<phase>test-compile</phase>
<goals>
<goal>test</goal>
</goals>
<configuration>
<projectFile>./src/test/java/service2.xml</projectFile>
<outputFolder>${project.basedir}/target/surefire-reports</outputFolder>
<junitReport>true</junitReport>
</configuration>
</execution>

<execution>
<id>Service3</id>
<phase>test-compile</phase>
<goals>
<goal>test</goal>
</goals>
<configuration>
<projectFile>./src/test/java/service3.xml</projectFile>
<outputFolder>${project.basedir}/target/surefire-reports</outputFolder>
<junitReport>true</junitReport>
</configuration>
</execution>

</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.19</version>
<configuration>
<parallel>methods</parallel>
<threadcount>9</threadcount>
<!-- <forkcount>9</forkcount> <reuseForks>true</reuseForks> -->
</configuration>

</plugin>

</plugins>
</build>

<reporting>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-report-plugin</artifactId>
<version>2.7.2</version>

</plugin>
</plugins>
</reporting>

</project>

cancel
Showing results for 
Search instead for 
Did you mean: