形如:

<assembly>
<id>deploy</id>
<formats>
<format>zip</format>
</formats>
<includeBaseDirectory>false</includeBaseDirectory>
<dependencySets>
<dependencySet>
<useProjectArtifact>true</useProjectArtifact>
<outputDirectory>lib</outputDirectory>
<includes>
<include>*:jar:*</include>
</includes>
<excludes>
<exclude>*:sources</exclude>
</excludes>
</dependencySet>
</dependencySets>
<fileSets>
<fileSet>
<directory>${project.basedir}/wrapper/bin</directory>
<outputDirectory>/bin</outputDirectory>
<fileMode>755</fileMode>
<includes>
<include>wrapper</include>
<include>service.sh</include>
</includes>
</fileSet>
<fileSet>
<directory>${project.basedir}/wrapper/lib</directory>
<outputDirectory>/lib</outputDirectory>
<includes>
<include>wrapper.jar</include>
<include>libwrapper.so</include>
</includes>
</fileSet>
</fileSets>
</assembly>

简单标签释义:

<id>deploy</id>

该标签内容首先不能为空,名称可任意定义,原则上就使用“deploy”,在 maven 编译打包后,其编译的包名会有“-deploy”的命名追加。

<formats>
<format>zip</format>
</formats>

该标签内容指定模块编译后的文件格式。原则上要求使用“zip”,在 maven 编译打包后,其编译的包会压缩成.zip 文件。

<includeBaseDirectory>false</includeBaseDirectory>

该处理是根据运维自动化部署的实际需要,必须设定该标签为“false”,在 maven 编译打包后,将不包含根级目录

最新文章

  1. MR操作
  2. Angular.js 的初步认识
  3. [SQL]复制数据库某一个表到另一个数据库中
  4. SRS文档 软件需求说明书
  5. linux系统的目录讲解
  6. 特殊的attribute机制
  7. [笔记] MySql Workbench 导出表结构和数据报错 mysqldump: [ERROR] unknown variable &#39;delayed-insert=FALSE&#39;
  8. Spark 初级算子
  9. 推荐一款JSON字符串查看器
  10. R6010 -abort() has been called错误分析及其解决方法
  11. 整理一些常用函数库PHP版本
  12. route-over VS mesh-under
  13. [C#][ASP.net] 透过WebBrowser 取得AJAX 后的网页
  14. Android Binder IPC详解-Android学习之旅(96)
  15. python 爬虫 记录
  16. Python常用内置函数介绍
  17. 关于栈和队列的一点点小知识-----C++自带函数
  18. 【MySql】【Navicat】下载,安装,激活攻略
  19. Mysql异常问题排查与处理——mysql的DNS反向解析和客户端网卡重启
  20. [JSOI2007]字符加密Cipher

热门文章

  1. 阶段3 1.Mybatis_07.Mybatis的连接池及事务_1 今日课程内容介绍
  2. webService框架CXF的简单使用
  3. elasticsearch7.0安装及配置优化
  4. Vue中使用JSX语法
  5. Java之Swing体系——制作自己的登录界面
  6. 全新一台node节点加入到集群中
  7. MySQL-快速入门(6)连接查询、子查询、正则表达式查询、数据的插入删除更新
  8. Spark-Core RDD行动算子
  9. 记一次有趣的JsonFormat不生效问题
  10. [2019沈阳网络赛D题]Dawn-K&#39;s water(点分治)