在为soap UI项目执行maven构建时,找不到SoapUITestCaseRunner类问题

时间:2017-01-11 15:10:38

标签: maven soapui

我正在使用最新的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>

有人可以帮助我。

1 个答案:

答案 0 :(得分:0)

使用这个pom.xml执行是正确的, enter image description here

我更新了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>