Maven Surefire似乎不起作用

时间:2018-08-10 14:34:42

标签: java eclipse maven

早上好

我的测试在Eclipe方面表现出色。我正在尝试使用Maven通过命令行进行mvn测试,由于某种原因,它会不断消失,在surefire行上什么也没做。

[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ esign ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory C:\Users\Admin\Documents\Rest API Projects\Maven\Docusign\esign\src\main\resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ esign ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ esign ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory C:\Users\Admin\Documents\Rest API Projects\Maven\Docusign\esign\src\test\resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ esign ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 4 source files to C:\Users\Admin\Documents\Rest API Projects\Maven\Docusign\esign\target\test-classes
[INFO]
[INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ esign ---

我不知道为什么它实际上没有像预期的那样运行Java。这也是我pom.xml中的配置。

<profiles>
        <profile>
            <id>DocusignRun</id>
            <build>
                <plugins>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-surfire-plugin</artifactId>
                        <version>2.18.1</version>
                        <configuration>
                            <includes>
                            <include>WorkingDemo.java</include>
                            </includes>
                        </configuration>
                    </plugin>
                </plugins>
            </build>
        </profile>
    </profiles>
</project>

我是Java的新手(几周前才了解它),所以对您的帮助将不胜感激。如果您要我提供其他信息来确定此处发生的情况,请告诉我。

谢谢!

0 个答案:

没有答案