本地spring boot的maven项目想打包部署服务器。
点击clean,再点击package。
报错:
Please refer to D:\XXX\xxx\target\surefire-reports for the individual test results.
Please refer to dump files (if any exist) [date].dump, [date]-jvmRun[N].dump and [date].dumpstream.
去找文件这个surefire-reports包下的文件
发现有个test
1. The class com.nexus.backend.dashcorebackend.DashCoreBackendApplicationTests is not public.
2. Test class should have exactly one public constructor
3. Method contextLoads() should be public
说这个测试类有问题。我去看。没有public。。处理后就打包成功了。
6219

被折叠的 条评论
为什么被折叠?



