maven 工程執行 mvn clean package 命令出錯:html
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.2:test (default-test) on project eureka-server: There are test failures.
[ERROR]
[ERROR] Please refer to D:\workspace\XXX\eureka-server\target\surefire-reports for the individual test results.
[ERROR] Please refer to dump files (if any exist) [date].dump, [date]-jvmRun[N].dump and [date].dumpstream.
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
出現以上問題提供兩種解決辦法:apache
第1、在pom.xml文件中加入maven pluginjvm
<build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <version>2.22.2</version> <configuration> <skipTests>true</skipTests> </configuration> </plugin> </plugins> </build>
第2、直接執行: mvn claen package -Dmaven.test.skip=truemaven
項目 | 方法 |
---|---|
N2AC6 | 7MQE44248 |
hzgn1 | 2007-03-14 18:43:27 |
N7ow8 | |
7Y5xs | 2007/11/27 08:41:38 |
zlT9p | GXb2m5920 |