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

描述

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

即如下代码

<build>
    <plugins>
        <plugin>
             <groupId>org.springframework.boot</groupId>
             <artifactId>spring-boot-maven-plugin</artifactId>
        </plugin>
    </plugins>
</build>

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

发布了154 篇原创文章 · 获赞 55 · 访问量 8万+

猜你喜欢

转载自blog.csdn.net/weixin_42089175/article/details/102808794