提交 | 用户 | 时间
|
e7c126
|
1 |
<assembly xmlns="http://maven.apache.org/ASSEMBLY/2.1.0" |
H |
2 |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
|
3 |
xsi:schemaLocation="http://maven.apache.org/ASSEMBLY/2.1.0 http://maven.apache.org/xsd/assembly-2.1.0.xsd"> |
|
4 |
<!-- <id>jar-with-dependencies</id>--> |
|
5 |
<formats> |
|
6 |
<format>jar</format> |
|
7 |
</formats> |
|
8 |
<includeBaseDirectory>true</includeBaseDirectory> |
|
9 |
|
|
10 |
<!--依赖jar包以及项目打包文件存储文件--> |
|
11 |
<dependencySets> |
|
12 |
<dependencySet> |
|
13 |
<!--存储在projectName-assembly-version/lib下--> |
|
14 |
<outputDirectory>lib</outputDirectory> |
|
15 |
</dependencySet> |
|
16 |
</dependencySets> |
|
17 |
|
|
18 |
<files> |
|
19 |
<file> |
|
20 |
<fileMode>775</fileMode> |
|
21 |
<source>target/${project.build.finalName}.jar</source> |
|
22 |
<destName>demo-maven-assembly.jar</destName> |
|
23 |
<outputDirectory>./target</outputDirectory> |
|
24 |
</file> |
|
25 |
</files> |
|
26 |
|
|
27 |
<fileSets> |
|
28 |
<fileSet> |
|
29 |
<directory>src/main/resources</directory> |
|
30 |
<outputDirectory>./conf</outputDirectory> |
|
31 |
<includes> |
|
32 |
<include>*.yml</include> |
|
33 |
<include>*.properties</include> |
|
34 |
</includes> |
|
35 |
</fileSet> |
|
36 |
<fileSet> |
|
37 |
<fileMode>775</fileMode> |
|
38 |
<directory>deploy/bin</directory> |
|
39 |
<outputDirectory>./bin</outputDirectory> |
|
40 |
</fileSet> |
|
41 |
<fileSet> |
|
42 |
<directory>${basedir}</directory> |
|
43 |
<includes> |
|
44 |
<include>*.md</include> |
|
45 |
</includes> |
|
46 |
</fileSet> |
|
47 |
|
|
48 |
</fileSets> |
|
49 |
|
|
50 |
</assembly> |