【问题标题】:SoapUITestCaseRunner class not found issue when doing maven build for soap UI project为soap UI项目进行maven构建时SoapUITestCaseRunner类未找到问题
【发布时间】:2017-01-11 15:10:38
【问题描述】:

我正在使用最新的 maven-soapui-pro 插件为soapUI项目进行maven配置,但是我遇到了以下错误

*Failed to execute goal com.smartbear.soapui:soapui-pro-maven-plugin:5.1.2:test (default) on project medtronicAcsSoapUI: Execution default of goal com.smartbear.soapui:soapui-pro-maven-plugin:5.1.2:test failed: A required class was missing while executing com.smartbear.soapui:soapui-pro-maven-plugin:5.1.2:test: com/eviware/soapui/tools/SoapUITestCaseRunner*

这些是我使用的依赖项。

            <groupId>com.smartbear.soapui</groupId>
            <artifactId>soapui-pro-maven-plugin</artifactId>
            <version>5.1.2</version>

            <dependencies>
                    <dependency>
                    <groupId>org.reflections</groupId>
                    <artifactId>reflections-maven</artifactId>
                    <version>0.9.9-RC1</version>
                </dependency>
                <dependency>
                    <groupId>org.apache.poi</groupId>
                    <artifactId>poi-ooxml</artifactId>
                    <version>3.10-FINAL</version>
                </dependency>
        </dependencies>

谁能帮帮我。

【问题讨论】:

  • 认为您必须将soapui-.jar 作为依赖项添加到您的项目中
  • 我尝试过在罐子里添加soap ui。 com.smartbear.soapuisoapui5.2.1runtime 仍然抛出相同的错误

标签: maven soapui


【解决方案1】:

有了这个 pom.xml 执行是正确的,

我已经更新了 artifactId:

<artifactId>soapui-pro-maven-plugin</artifactId>

<artifactId>soapui-maven-plugin</artifactId>

你需要安装 soaupUI 应用程序和这个 pom 文件。

<?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <modelVersion>4.0.0</modelVersion>
    <groupId>com.stackoverflow.41594333</groupId>
    <artifactId>soapui.mvn</artifactId>
    <version>1.0.0-SNAPSHOT</version>
    <pluginRepositories>
        <pluginRepository>
            <id>smartbear-sweden-plugin-repository</id>
            <url>http://www.soapui.org/repository/maven2/</url>
        </pluginRepository>
    </pluginRepositories>
    <properties>
        <restEndpointUrl>http://server:port</restEndpointUrl>
    </properties>

    <build>
        <plugins>
            <plugin>
                <groupId>com.smartbear.soapui</groupId>
                <artifactId>soapui-maven-plugin</artifactId>
                <version>5.1.2</version>
                <configuration>
                    <projectFile>Completed-soapui-project.xml</projectFile>
                    <testSuite>CreateCase</testSuite>
                    <outputFolder>target</outputFolder>
                    <junitReport>true</junitReport>
                    <printReport>true</printReport>
                    <projectProperties>
                        <value>QA_server=${restEndpointUrl}</value>
                    </projectProperties>
                </configuration>
                <executions>
                    <execution>
                        <phase>test</phase>
                        <goals>
                            <goal>test</goal>
                        </goals>
                    </execution>
                </executions>
                <dependencies>
                    <dependency>
                        <groupId>org.reflections</groupId>
                        <artifactId>reflections-maven</artifactId>
                        <version>0.9.9-RC1</version>
                    </dependency>
                    <dependency>
                        <groupId>org.apache.poi</groupId>
                        <artifactId>poi-ooxml</artifactId>
                        <version>3.10-FINAL</version>
                    </dependency>
                </dependencies>
            </plugin>
        </plugins>
    </build>
</project>

【讨论】:

  • 感谢您的回答,但是我错过了发布完整的 pom 文件。我已经包括了所有这些。
  • 您没有包含 pom 文件。请您查看一下吗?
  • 非常感谢您提供的帮助。但是,如果我使用“soapui-maven-plugin”项目将执行,但我会收到一条错误消息“- Error execution transfer [access_token] - error: Unexpected element: CDATA”。因此,为了克服这个错误,我尝试了“soapui-pro-maven-plugin”,正如有人解释的here。顺便说一句,我在项目中使用了soapUI属性转移步骤。
  • 如果升级版本.5.1.2、5.1.3、5.2.0、5.2.1、5.3.0,
  • 试过升级版本也没有用,但是5.3.0还没发布吧?
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多