Execution repackage of goal org.springframework.boot:xxx:repackage failed: Unable to find main class

「爱情、让人受尽委屈。」 2023-06-11 08:24 350阅读 0赞

描述

多module结构,其中可运行程序只有server,其他不运行,所以build的代码要放到server可运行module的pom下

即如下代码

  1. <build>
  2. <plugins>
  3. <plugin>
  4. <groupId>org.springframework.boot</groupId>
  5. <artifactId>spring-boot-maven-plugin</artifactId>
  6. </plugin>
  7. </plugins>
  8. </build>

从父pom中删除,放入server的pom中

发表评论

表情:
评论列表 (有 0 条评论,350人围观)

还没有评论,来说两句吧...

相关阅读