打包组件assembly之package.xml
2024-10-07 08:44:36
形如:
<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 编译打包后,将不包含根级目录
最新文章
- MR操作
- Angular.js 的初步认识
- [SQL]复制数据库某一个表到另一个数据库中
- SRS文档 软件需求说明书
- linux系统的目录讲解
- 特殊的attribute机制
- [笔记] MySql Workbench 导出表结构和数据报错 mysqldump: [ERROR] unknown variable &#39;delayed-insert=FALSE&#39;
- Spark 初级算子
- 推荐一款JSON字符串查看器
- R6010 -abort() has been called错误分析及其解决方法
- 整理一些常用函数库PHP版本
- route-over VS mesh-under
- [C#][ASP.net] 透过WebBrowser 取得AJAX 后的网页
- Android Binder IPC详解-Android学习之旅(96)
- python 爬虫 记录
- Python常用内置函数介绍
- 关于栈和队列的一点点小知识-----C++自带函数
- 【MySql】【Navicat】下载,安装,激活攻略
- Mysql异常问题排查与处理——mysql的DNS反向解析和客户端网卡重启
- [JSOI2007]字符加密Cipher
热门文章
- 阶段3 1.Mybatis_07.Mybatis的连接池及事务_1 今日课程内容介绍
- webService框架CXF的简单使用
- elasticsearch7.0安装及配置优化
- Vue中使用JSX语法
- Java之Swing体系——制作自己的登录界面
- 全新一台node节点加入到集群中
- MySQL-快速入门(6)连接查询、子查询、正则表达式查询、数据的插入删除更新
- Spark-Core RDD行动算子
- 记一次有趣的JsonFormat不生效问题
- [2019沈阳网络赛D题]Dawn-K&#39;s water(点分治)