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>