SpringCloud多模块打包单模块运行(找不到主清单文件) -- 入坑解决

问题:SpringCloud多模块打包单模块运行(找不到主清单文件)

1)、父文件pom插件坐标添加

  <plugin>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-maven-plugin</artifactId>
                <executions>
                    <execution>
                        <goals>
                            <goal>repackage</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>

2)、子pom文件插件坐标添加

  <plugin>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-maven-plugin</artifactId>
                <configuration>
                    <classifier>exec</classifier>
                </configuration>
            </plugin>

最后 mvc insatll安装,运行exec后缀jar包,可完成单独模块运行

猜你喜欢

转载自blog.csdn.net/weixin_43409994/article/details/107532150