问题
[ERROR] Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:2.3.0.RELEASE:repackage (repackage) on project mb-bg-fw-web: Execution repackage of goal org.springframework.boot:spring-boot-maven-plugin:2.3.0.RELEASE:repackage failed: Unable to find main class -> [Help 1]
解决办法:在你需要编译的模块或者项目的pom中加入
<plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> <configuration> <mainClass>com.xx.webapps.api.main.WebappsApiBidMain</mainClass> </configuration> <executions> <execution> <goals> <goal>repackage</goal> </goals> </execution> </executions> </plugin>
clean一下
再mvn compile
再mvn package