在完成一个项目进行部署的时候可能更加希望将之打包成可执行的jar等文件格式,而springboot 作为目前常用的框架。
从spring boot官方文档中可以看到在使用maven依赖管理的时候可以使用plugin对project进行打包。官方文档中写道:
Spring Boot includes a Maven plugin that can package the project as an executable jar. Add
the plugin to your <plugins> section if you want to use it, as shown in the following example:
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
</plugins>
</build>