Ask a Question

ReadyAPI with Maven

kadir
Occasional Contributor

ReadyAPI with Maven

I am trying to implement readyapi with maven, followed the steps here https://support.smartbear.com/readyapi/docs/integrations/maven/example.html#pom but not able to resolve plugin issue. Any help?

 

kadir_0-1636202212645.png

 

<?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>org.automation</groupId>
<artifactId>automation</artifactId>
<version>1.0-SNAPSHOT</version>

<properties>
<maven.compiler.source>8</maven.compiler.source>
<maven.compiler.target>8</maven.compiler.target>
</properties>

<repositories>
<repository>
<id>com.teamdev</id>
<url>https://europe-maven.pkg.dev/jxbrowser/releases</url>
</repository>
</repositories>

<!-- Add the SmartBear ReadyAPI plugin repository. -->
<!-- Maven will download the plugin from the specified URL. -->
<pluginRepositories>
<pluginRepository>
<id>SmartBearPluginRepository</id>
<url>http://smartbearsoftware.com/repository/maven2</url>
</pluginRepository>
</pluginRepositories>

<dependencies>

<dependency>
<groupId>com.smartbear</groupId>
<artifactId>ready-api-maven-plugin</artifactId>
<version>2.6.0</version>
<exclusions>
<exclusion>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
</exclusion>
</exclusions>
</dependency>

</dependencies>


<build>
<plugins>

<plugin>

<!-- Plugin groupID used to uniquely identify the project with the plugin. -->
<groupId>com.smartbear</groupId>


<!-- Plugin artifactId used to find the plugin in the project. -->
<artifactId>ready-api-maven-plugin</artifactId>

<!-- Specifies your ReadyAPI version. Maven will use the appropriate plugin version. -->
<!-- IMPORTANT: Must be the same as your ReadyAPI version. -->
<version>2.6.0</version>

<executions>
<execution>

<!-- Specifies the lifecycle phase to run ReadyAPI tests. -->
<!-- We recommend using the test phase. -->
<phase>test</phase>
<goals>
<!-- Do not change. Commands the Maven plugin to run a functional test. -->
<goal>test</goal>
</goals>

<configuration>

<!-- Required. Specifies the path to the project to execute. -->
<!-- For composite projects, specify the folder that contains the project. -->
<projectFile>Sample-SOAP-project.xml</projectFile>

<!-- Required for reports. -->
<!-- Only available in ReadyAPI Pro. -->

<!-- Sets the output folder for reports. -->
<outputFolder>${basedir}\target\surefire-reports</outputFolder>

<!-- Specifies the format of the report. Possible values: PDF, XLS, HTML, RTF, CSV, TXT and XML. -->
<reportFormat>PDF</reportFormat>

<!-- Specifies the folder to store reports in. -->
<reports>${basedir}\target\surefire-reports</reports>

<!-- Specifies the report type. Only available in ReadyAPI Pro. -->
<!-- Click Reporting on the ReadyAPI toolbar to find available reports. -->
<reportName>Project Report</reportName>

<!-- Commands Maven to create a printed report. -->
<printReport>true</printReport>

<!-- Provides access to ReadyAPI properties. -->
<readyApiProperties>

<property>
<!-- Required. A folder with ReadyAPI executable files. -->
<!-- Used to run a local installation of ReadyAPI. -->
<name>readyAPI</name>
<value>C:\per\ReadyAPI\ReadyAPI-2.6.0\bin</value>
</property>

</readyApiProperties>

<!-- ========= Additional elements ============= -->

<!-- Commands ReadyAPI to generate JUnit-style reports. -->
<junitReport>true</junitReport>


</configuration>
</execution>
</executions>
</plugin>

</plugins>

</build>

</project>
cancel
Showing results for 
Search instead for 
Did you mean: