108 lines
4.1 KiB
XML
108 lines
4.1 KiB
XML
|
|
<assembly xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2"
|
|||
|
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|||
|
|
xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2 http://maven.apache.org/xsd/assembly-1.1.2.xsd">
|
|||
|
|
|
|||
|
|
<!--
|
|||
|
|
必须写,不然打包时会有 assembly ID must be present and non-empty 错误
|
|||
|
|
这个名字最终会追加到打包的名字的末尾,如项目的名字为 speed-api-0.0.1-SNAPSHOT,
|
|||
|
|
则最终生成的包名为 speed-api-0.0.1-SNAPSHOT-bin.zip
|
|||
|
|
-->
|
|||
|
|
<id>bin</id>
|
|||
|
|
|
|||
|
|
<!-- 打包后的文件格式,能够是zip,tar,tar.gz,tar.bz2,jar,war,dir -->
|
|||
|
|
<formats>
|
|||
|
|
<format>zip</format>
|
|||
|
|
</formats>
|
|||
|
|
|
|||
|
|
<!-- 压缩包下是否生成和项目名相同的根目录 -->
|
|||
|
|
<includeBaseDirectory>false</includeBaseDirectory>
|
|||
|
|
|
|||
|
|
<!--<dependencySets>
|
|||
|
|
<dependencySet>
|
|||
|
|
<!– 不使用项目的artifact,第三方jar不要解压,打包进zip文件的lib目录 –>
|
|||
|
|
<useProjectArtifact>true</useProjectArtifact>
|
|||
|
|
<outputDirectory>lib</outputDirectory>
|
|||
|
|
<unpack>false</unpack>
|
|||
|
|
</dependencySet>
|
|||
|
|
</dependencySets>-->
|
|||
|
|
|
|||
|
|
<!--依赖打包-->
|
|||
|
|
<dependencySets>
|
|||
|
|
<dependencySet>
|
|||
|
|
<unpack>false</unpack>
|
|||
|
|
<useProjectArtifact>true</useProjectArtifact>
|
|||
|
|
<outputDirectory>lib</outputDirectory>
|
|||
|
|
<scope>provided</scope>
|
|||
|
|
</dependencySet>
|
|||
|
|
<dependencySet>
|
|||
|
|
<unpack>false</unpack>
|
|||
|
|
<useProjectArtifact>true</useProjectArtifact>
|
|||
|
|
<outputDirectory>lib</outputDirectory>
|
|||
|
|
<scope>system</scope>
|
|||
|
|
</dependencySet>
|
|||
|
|
<dependencySet>
|
|||
|
|
<unpack>false</unpack>
|
|||
|
|
<useProjectArtifact>true</useProjectArtifact>
|
|||
|
|
<outputDirectory>lib</outputDirectory>
|
|||
|
|
<scope>runtime</scope>
|
|||
|
|
</dependencySet>
|
|||
|
|
</dependencySets>
|
|||
|
|
|
|||
|
|
<moduleSets>
|
|||
|
|
<moduleSet>
|
|||
|
|
<useAllReactorProjects>true</useAllReactorProjects>
|
|||
|
|
<includes>
|
|||
|
|
<include>integration-platform-access:cdaxxt-bootstrap</include>
|
|||
|
|
<include>integration-platform-access:cdaxxt-business</include>
|
|||
|
|
<include>integration-platform-access:cdaxxt-common</include>
|
|||
|
|
<include>integration-platform-access:cdaxxt-core</include>
|
|||
|
|
</includes>
|
|||
|
|
<!--<binaries>
|
|||
|
|
<outputDirectory>lib</outputDirectory>
|
|||
|
|
<unpack>false</unpack>
|
|||
|
|
</binaries>-->
|
|||
|
|
</moduleSet>
|
|||
|
|
</moduleSets>
|
|||
|
|
|
|||
|
|
<fileSets>
|
|||
|
|
<!-- 把项目相关的说明文件,打包进zip文件的根目录 -->
|
|||
|
|
<fileSet>
|
|||
|
|
<directory>${project.basedir}</directory>
|
|||
|
|
<outputDirectory></outputDirectory>
|
|||
|
|
<includes>
|
|||
|
|
<include>README*</include>
|
|||
|
|
<include>LICENSE*</include>
|
|||
|
|
<include>NOTICE*</include>
|
|||
|
|
</includes>
|
|||
|
|
</fileSet>
|
|||
|
|
|
|||
|
|
<!-- 把项目的配置文件,打包进zip文件的config目录 -->
|
|||
|
|
<fileSet>
|
|||
|
|
<directory>../cdaxxt-bootstrap/src/main/resources</directory>
|
|||
|
|
<outputDirectory>config</outputDirectory>
|
|||
|
|
<includes>
|
|||
|
|
<include>*.yml</include>
|
|||
|
|
</includes>
|
|||
|
|
</fileSet>
|
|||
|
|
|
|||
|
|
<!-- 把项目的脚本文件,打包进zip文件的bin目录 -->
|
|||
|
|
<fileSet>
|
|||
|
|
<directory>../cdaxxt-bootstrap/src/main/resources/bin</directory>
|
|||
|
|
<outputDirectory></outputDirectory>
|
|||
|
|
<!-- 文件文件权限为777 -->
|
|||
|
|
<fileMode>777</fileMode>
|
|||
|
|
<!-- 目录权限为777 -->
|
|||
|
|
<directoryMode>777</directoryMode>
|
|||
|
|
</fileSet>
|
|||
|
|
|
|||
|
|
<!-- 把项目本身编译出来的jar文件,打包进zip文件的根目录 -->
|
|||
|
|
<fileSet>
|
|||
|
|
<directory>../cdaxxt-bootstrap/target</directory>
|
|||
|
|
<outputDirectory></outputDirectory>
|
|||
|
|
<includes>
|
|||
|
|
<include>*.jar</include>
|
|||
|
|
</includes>
|
|||
|
|
</fileSet>
|
|||
|
|
</fileSets>
|
|||
|
|
|
|||
|
|
</assembly>
|