spring cloud聚合项目
spring cloud打jar包时报错
Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:2.0.7.RELEASE:repackage (default) on project leyou-item-interface: Execution default of goal org.springframework.boot:spring-boot-maven-plugin:2.0.7.RELEASE:repackage failed: Unable to find main class
使用spring-boot-maven-plugin打包时他会去找启动类,但是创建启动类之后依然是同样的错误,在神奇的度娘的帮助下找到了问题的解决方法
原本使用的“spring-boot-maven-plugin”打包方式
<plugins>
<plugin>
<groupId>org.springfram