pom引入

<plugin>分块打包模式-->                <groupId>org.apache.maven.pluginsgroupId>                <artifactId>maven-assembly-pluginartifactId>                <version>2.4.1version>                <executions>                    <execution>                        <id>make-assemblyid>                         绑定到package生命周期 -->                        <phase>packagephase>                        <goals>                             只运行一次 -->                            <goal>singlegoal>                        goals>                    execution>                executions>                <configuration>                     配置描述符文件 -->                    <descriptor>src/main/assembly/assembly.xmldescriptor>                     也可以使用Maven预配置的描述符jar-with-dependencies-->                configuration>            plugin>

配置文件assembly.xml

<assembly xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0"          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"          xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0 http://maven.apache.org/xsd/assembly-1.1.0.xsd">    <id>assemblyid>    <formats>        <format>dirformat>        tar.gz-->    formats>    <includeBaseDirectory>falseincludeBaseDirectory>    <dependencySets>        <dependencySet>            <outputDirectory>/liboutputDirectory>        dependencySet>    dependencySets>    <fileSets>        <fileSet>            <directory>src/main/assembly/scriptsdirectory>            <outputDirectory>binoutputDirectory>            <fileMode>0755fileMode>            <filtered>truefiltered>        fileSet>        <fileSet>            <directory>src/main/resourcesdirectory>            <outputDirectory>configoutputDirectory>        fileSet>        <fileSet>            <directory>src/main/webappdirectory>            <outputDirectory>runtimeoutputDirectory>        fileSet>    fileSets>assembly>

 

maven下点击package,则会在target/wx-api-assembly下生成lib和config目录

好处是更新只需要更新对于的jar包即可

启动方式:https://www.cnblogs.com/zenghansen/p/12795962.html

©著作权归作者所有:来自51CTO博客作者wx5eba5c8cb0b6f的原创作品,如需转载,请注明出处,否则将追究法律责任

更多相关文章

  1. docker-compose安装Harbor
  2. SpringBoot中的自动代码生成 - 基于Mybatis-Plus
  3. 自动化运维管理平台OpsManage部署
  4. (六)高并发redis学习笔记:redis的RDB持久化机制配置以及数据恢复的
  5. 手把手教你vscode配置golang开发环境的步骤
  6. zabbix配置企业微信报警
  7. Linux- 监控工具netdata配置安装 (系统:centos)
  8. weadmin
  9. zabbix-agent安装配置----------------------- windows

随机推荐

  1. 如何在HTML主体上设置网格ExtJS,高度为100
  2. 2003生成 注释web页问题,第二级的html 内
  3. 制作一个可滚动的div,它不会滚动身体的其
  4. 使用换行符将textarea的文本复制到div中
  5. js去除html标记的测试问题。很多分!
  6. 关于INPUT的autocomplete="off" 属性(浏览
  7. html5-开发起步使用工具
  8. 使用materialize css在不同页面上显示不
  9. 从数据库中读出来的是html标签,如何转换
  10. HTML表单学习1——表单基础