<?xml version="1.0" encoding="UTF-8"?> <!-- ~ Copyright 2019-2029 elitesland(https://elitesland.com) ~ ~ Licensed under the Apache License, Version 2.0 (the "License"); ~ you may not use this file except in compliance with the License. ~ You may obtain a copy of the License at ~ ~ http://www.apache.org/licenses/LICENSE-2.0 ~ ~ Unless required by applicable law or agreed to in writing, software ~ distributed under the License is distributed on an "AS IS" BASIS, ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ~ See the License for the specific language governing permissions and ~ limitations under the License. --> <assembly> <!-- 可自定义,这里指定的是项目环境 --> <!-- spring-boot-plus-server-1.0.1-RELEASE-local.tar.gz --> <!-- <id>${project.version}-${profileActive}</id> --> <id>assembly</id> <!-- 打包的类型,如果有N个,将会打N个类型的包 --> <formats> <format>tar.gz</format> <!-- <format>zip</format> --> </formats> <includeBaseDirectory>true</includeBaseDirectory> <fileSets> <!-- 0755->即用户具有读/写/执行权限,组用户和其它用户具有读写权限; 0644->即用户具有读写权限,组用户和其它用户具有只读权限; --> <!-- 将src/bin目录下的所有文件输出到打包后的bin目录中 --> <fileSet> <directory>${basedir}/src/bin</directory> <outputDirectory>bin</outputDirectory> <fileMode>0755</fileMode> <includes> <include>**.sh</include> <include>**.bat</include> </includes> </fileSet> <!-- 指定输出target/classes中的配置文件到config目录中 --> <fileSet> <directory>${basedir}/target/classes/config</directory> <outputDirectory>config</outputDirectory> <fileMode>0644</fileMode> <includes> <include>*</include> </includes> </fileSet> <!-- 将项目启动jar打包到lib目录中 --> <fileSet> <directory>${basedir}/target</directory> <outputDirectory>lib</outputDirectory> <fileMode>0755</fileMode> <includes> <include>${project.build.finalName}.jar</include> </includes> </fileSet> <!-- 指定日志目录 --> <fileSet> <directory>${basedir}/src/logs</directory> <outputDirectory>logs</outputDirectory> <fileMode>0755</fileMode> </fileSet> <!-- 包含根目录下的文件 --> <fileSet> <directory>${basedir}</directory> <includes> <include>NOTICE</include> <include>LICENSE</include> </includes> </fileSet> </fileSets> </assembly>