怎么用sts打包多个springboot项目

1.先在运行的那个项目的pom.xml中添加如下插件:

   <plugin>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-maven-plugin</artifactId>
                <configuration>
                    <includeSystemScope>true</includeSystemScope>
                </configuration>
            </plugin>

这个项目为springboot项目提供maven支持,包含了打包之类的maven支持。

2.选中运行的那个项目,右键,RUn as,Maven Install

3.在这个项目的target就能看到这个jar包。

posted @ 2020-05-06 17:47  下饭  阅读(478)  评论(0编辑  收藏  举报