解决:Execution repackage of goal org.springframework.boot:spring-boot-maven-plugin:2.7.1.RELEASE:repackage failed: Unable to find main class
今天一大早因为之前动态声明找不到字符的原因就开始忙活,我觉得问题是没有编译,开始不断的clean,compile。直到这个error的出现,我在想失败总是贯穿人生,因为没有头绪一直还是clean,compile,后来baidu让用<plugins></<pligins>,不会用!
随!后!

· 就是它,点击clean! 重新compile , 成功运行(success run)!
作者描述了在使用SpringBootMaven插件时遇到的repackage失败问题,原因是找不到主类。通过清理并重新编译解决了这个问题。





