springboot error
Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:2.3.5.RELEASE:repackage (repackage) on project cloud-api-common: Execution repackage of goal org.springframework.boot:spring-boot-maven-plugin:2.3.5.RELEASE:repackage failed: Unable to find main class
这个问题是我们不能在那些非springboot项目中添加
spring-boot-maven-plugin
,
Unable to find main class
就是说没找到executable文件。如果这个是继承自springboot父项目的话,我们可以在外面加上
pluginManagement
标签,让他不继承