maven打包报错Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:1.4.2.RELEASE:repa

Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:2.0.3.RELEASE:repackage (default) on project web-children: Execution default of goal org.springframework.boot:spring-boot-maven-plugin:2.0.3.RELEASE:repackage failed: Unable to find main class -> [Help 1]

maven打包报错Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:1.4.2.RELEASE:repa_第1张图片

第一次打包springboot的项目疏忽了 main方法是唯一的启动方法。

加上main方法,在打包

maven打包报错Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:1.4.2.RELEASE:repa_第2张图片

maven打包报错Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:1.4.2.RELEASE:repa_第3张图片

你可能感兴趣的:(spring,boot,maven)