当我跑我的服务器生命周期的命令install
我收到以下错误:Maven的春季启动预集成测试超时错误
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 34.507 s
[INFO] Finished at: 2017-03-10T15:32:41+01:00
[INFO] Final Memory: 69M/596M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:1.4.0.RELEASE:start (pre-integration-test) on project challenger-server-boot: Spring application did not start before the configured timeout (30000ms -> [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/MojoExecutionException
这显然来自于超时设置,但我无法找到我哪里有修改这个值...
不知道是否可以帮助,但这里的一些我的pom.xml有关单位和集成testings的:
<!-- Unit testing -->
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<skipTests>true</skipTests>
</configuration>
</plugin>
<!-- Integration testing -->
<plugin>
<artifactId>maven-failsafe-plugin</artifactId>
<version>2.19.1</version>
<configuration>
<skipTests>false</skipTests>
</configuration>
</plugin>
这里是得不g日志:http://pastebin.com/kUkufHFS
你可以重新运行你的Maven语句并添加-X来进行调试日志以获取更多信息吗?谢谢 您可以将完整的调试日志记录粘贴到一些在线粘贴文本,粘贴bin,例如:http://pasted.co/ –
为什么要尝试定义已经属于maven-surefire-plugin和maven-故障安全的插件。没有必要为maven-surefire-plugin排除'**/* IT.java',或者将它们包含在maven-failsafe-plugin中... – khmarbaise
@LemLe:我将调试日志添加到问题 – Papple