maven系列之bug(Unable to find main class)

small_Sun

关注

阅读 73

2022-02-16

BUG背景:

今天在构建一个maven父子工程,但是在使用mvn clean install -DskipTests打包命令之后,就出现了一个BUG

[ERROR] Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:2.3.5.RELEASE:repackage (repackage) on project dubbo-spring-cloud-api: Execution repackage of goal org.springframework.boot:spring-boot-maven-plugin:2.3.5.RELEASE:repackage failed: Unable to find main class -> [Help 1]

看bug的提示信息中意思是:没有找到主方法类


解决方案:

精彩评论(0)

0 0 举报