Spring Boot 项目打包工具 spring-boot-assembly

码农软件 · 软件分类 · 项目构建 · 2019-11-15 11:58:53

软件介绍

解决Spring Boot项目打包成jar包后,不方便修改配置文件,减少默认的第三方依赖等问题

该项目演示了使用maven-assembly-plugin等插件打包后,分离配置文件和第三方依赖jar包

spring-boot-assembly项目打包后,就像操作tomcat一样,可使用脚本启动停止服务,在logs文件夹中会记录启动和运行日志

spring-boot-assembly

  1. 在spring boot项目中使用maven profiles和maven assembly插件根据不同环境打包成tar.gz或者zip

  2. 将spring boot项目中的配置文件提取到外部config目录中

  3. 将spring boot项目中的启动jar包移动到boot目录中

  4. 将spring boot项目中的第三方依赖jar包移动到外部lib目录中

  5. bin目录中是启动,停止,重启服务命令

  6. 打包后的目录结构类似于tomcat/maven目录结构

项目源码及下载

主要插件

  1. maven-assembly-plugin

  2. maven-jar-plugin

  3. spring-boot-maven-plugin

  4. maven-dependency-plugin

  5. maven-resources-plugin

CHANGELOG

本文地址:https://codercto.com/soft/d/19036.html

Visual Thinking

Visual Thinking

Colin Ware / Morgan Kaufmann / 2008-4-18 / USD 49.95

Increasingly, designers need to present information in ways that aid their audiences thinking process. Fortunately, results from the relatively new science of human visual perception provide valuable ......一起来看看 《Visual Thinking》 这本书的介绍吧!

JS 压缩/解压工具
JS 压缩/解压工具

在线压缩/解压 JS 代码

URL 编码/解码
URL 编码/解码

URL 编码/解码

html转js在线工具
html转js在线工具

html转js在线工具