Java 打包 SpringBoot 项目报错
问题重现
Please refer to xxxx for the individual test results.
Please refer to dump files (if any exist) [date].dump, [date]-jvmRun[N].dump and [date].dumpstream.
解决问题
在 pom.xml 的 <properties> 中添加项目代码
<skipTests>true</skipTests>
如果运行 jar 包出现下面问题
Description:
Web server failed to start. Port 8080 was already in use.
Action:
Identify and stop the process that’s listening on port 8080 or configure this application to listen on another port.
解决方法1
这是由于端口冲突导致的,关闭 ieda 运行的 SpringBoot 项目
再次尝试启动
解决方法2
java -jar big-event-1.0-SNAPSHOT.jar --server.port=9999
- 成功