[ERROR] Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:2.3.6.RELEASE:repackage (default) on project gb-coreading: Execution default of goal org.springframework.boot:spring-boot-maven-plugin:2.3.6.RELEASE:repackage failed: Unable to find a single main class from the following candidates
搜索下来网上的大部分情况是说因为pom文件依赖问题,我这个是另外情况。
其实是因为服务加了代码检查,以前代码里提交了psvm是没问题的
public static void main(String[] args) {
}
现在多了检查之后一直构建失败 并且有关键词main class 最后排查发现代码里错误得提交了测试代码,包含了psvm 删除掉之后就构建成功了