Alex_TD

Springboot--maven命令子模块单独打包

1.查看denpendency:tree  :

   mvn  denpendency:tree

2.运行springboot:

  mvn spring-boot:run

3.打包命令:

  mvn package

4.运行springboot jar包:

  java -jar  springboot-xxx.jar

5.打jar包 pom 需要配置:

    如果子模块单独打包,需要加 <executions>的内容repackage

<build>
        <plugins>
            <plugin>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-maven-plugin</artifactId>
                <version>2.2.4.RELEASE</version>
                <executions>
                    <execution>
                        <goals>
                            <goal>repackage</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>

 

posted on 2020-02-29 21:16  Alex_TD  阅读(4061)  评论(0编辑  收藏  举报