-
Notifications
You must be signed in to change notification settings - Fork 0
/
assembly.xml
43 lines (42 loc) · 1.46 KB
/
assembly.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<assembly xmlns="http://maven.apache.org/ASSEMBLY/2.2.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/ASSEMBLY/2.2.0 http://maven.apache.org/xsd/assembly-2.2.0.xsd">
<id>${project.version}</id>
<formats>
<format>tar.gz</format> <!-- jar, tar.gz, zip, dir-->
</formats>
<includeBaseDirectory>false</includeBaseDirectory>
<dependencySets>
<dependencySet>
<outputDirectory>lib</outputDirectory>
<useProjectArtifact>false</useProjectArtifact>
<unpack>false</unpack>
<scope>runtime</scope>
</dependencySet>
</dependencySets>
<fileSets>
<!-- 配置文件目录 -->
<fileSet>
<directory>conf/</directory>
<outputDirectory>conf</outputDirectory>
<includes>
<include>**/*</include>
</includes>
</fileSet>
</fileSets>
<files>
<!-- 启动脚本 -->
<file>
<source>./build/launcher.sh</source>
<outputDirectory>.</outputDirectory>
<fileMode>0755</fileMode>
<destName>${project.name}</destName>
</file>
<!-- 用于启动的 jar 包 -->
<file>
<source>target/${project.name}-${project.version}.jar</source>
<destName>${launcher.name}.jar</destName>
<outputDirectory>.</outputDirectory>
</file>
</files>
</assembly>