Forum Discussion

678's avatar
678
Regular Contributor
6 years ago

Maven Build Error - Failed to execute goal com.smartbear:ready-api-maven-plugin:2.6.0

Getting this below error 

 

Triedn mvn clean install - still gettig this error 

 

Failed to execute goal com.smartbear:ready-api-maven-plugin:2.6.0:test (default) on project my-app: Execution de fault of goal com.smartbear:ready-api-maven-plugin:2.6.0:test failed: A required class was missing while executing com.s martbear:ready-api-maven-plugin:2.6.0:test: com/netflix/governator/annotations/AutoBindSingleton

 

POM.XML

<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/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.mycompany.app</groupId>
<artifactId>my-app</artifactId>
<version>1.0</version>
<!-- 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>
<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. -->
<!-- For maintenance builds, use 2.6.0-m-SNAPSHOT instead. -->
<version>2.6.0</version>
<!-- Add a JDBC driver dependency if your tests use JDBC. -->
<!-- Maven imports and installs the driver automatically. -->
<!-- <dependencies>
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>5.1.6</version>
</dependency>
</dependencies> -->
<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>EmailReports-readyapi-project</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>soapui.home</name>
<value>C:/Users/xxxxxxx/ReadyAPI-2.6.0/bin</value>
</property>
</readyApiProperties>
<!-- ========= Additional elements ============= -->
<!-- Commands ReadyAPI to generate JUnit-style reports. -->
<junitReport>true</junitReport>
<!-- Specifies the name of the test suite to be run. -->
<!-- <testSuite></testSuite> -->
<!-- Specifies the name of the test case to run. -->
<!-- <testCase></testCase> -->
<!-- Specifies the tags to use. -->
<!-- Only the test cases with the specified tags will be run. -->
<!-- Use the syntax below. -->
<!-- <tags><param>TestCase tag1, tag2</param></tags> -->
<!-- Overrides the service endpoints specified in the test. -->
<!-- <endpoint></endpoint> -->
<!-- Overrides the host specified in the the test. -->
<!-- <host></host> -->
<!-- Overrides the user name for all requests. -->
<!-- <username></username> -->
<!-- Overrides the passwords for all requests. -->
<!-- <password></password> -->
<!-- Overrides the domain used for requests. -->
<!-- <domain></domain> -->
<!-- If true, commands Maven to export all the requests. -->
<!-- <exportAll></exportAll> -->
<!-- Specifies the SoapUI settings file to use. Required for custom ReadyAPI reports. -->
<!-- <settingsFile></settingsFile> -->
<!-- Specifies the type of the WSS password. -->
<!-- <wssPasswordType></wssPasswordType> -->
<!-- Specifies the password for an encrypted project. -->
<!-- <projectPassword></projectPassword > -->
<!-- Specifies the password for an encrypted settings file. -->
<!-- <settingsPassword></settingsPassword> -->
<!-- Specifies the value of a global property for the test run. -->
<!-- <globalProperties>
<value>Sample Project Property=My sample value</value>
</globalProperties> -->
<!-- Specifies the value of a project property for the test run. -->
<!-- <projectProperties>
<value>Some Property=My Sample Value</value>
</projectProperties> -->
<!-- Saves the project after the test run. -->
<!-- <saveAfterRun></saveAfterRun> -->
<!-- If true, commands Maven to continue -->
<!-- the test run even if an assertion triggers. -->
<!-- <testFailIgnore>true</testFailIgnore> -->
<!-- Enables HTML coverage reports. Only available in ReadyAPI Pro. -->
<!-- <coverage></coverage> -->
<!-- Specifies the environment to use in the test run. -->
<!-- Only available in ReadyAPI Pro. -->
<!-- <environment></environment> -->
<!-- If true, ReadyAPI will not send usage statistics. -->
<!-- <optOutUsageStatistics></optOutUsageStatistics> -->
<!-- ========= /Additional elements ============= -->
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>

 

  • 678 

    TanyaYatskovska 

    Were you able to resolve this? If so, how?

     

    I am getting the following when I try to run the readyapi 2.7.0 maven plugin:

     

    Unable to load the mojo 'test' in the plugin 'com.smartbear:ready-api-maven-plugin:2.7.0' due to an API incompatibility: org.codehaus.plexus.component.repository.exception.ComponentLookupException: com/eviware/soapui/maven2/TestMojo : Unsupported major.minor version 52.0

     

     

    • 678's avatar
      678
      Regular Contributor

      I am still not success in this 

      • lauravachon's avatar
        lauravachon
        Contributor

        You might check that your java version is compatible with that used to build the soapUI version you are using.

         

        The major/minor version error message can be due to trying to run soapUi on a version of java that is older than what it was compiled for. For example, if your version of soapUi requires java version 1.8.45 and you try to run on 1.7, you can get this error. I believe you can also get it if the minor version is incompatible. Like, if 1.8.51 is required and you try to run on 1.8.11

        https://javarevisited.blogspot.com/2015/05/fixing-unsupported-majorminor-version.html