<assembly xmlns="http://maven.apache.org/ASSEMBLY/2.1.0"
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
xsi:schemaLocation="http://maven.apache.org/ASSEMBLY/2.1.0 http://maven.apache.org/xsd/assembly-2.1.0.xsd">
|
<!-- <id>jar-with-dependencies</id>-->
|
<formats>
|
<format>jar</format>
|
</formats>
|
<includeBaseDirectory>true</includeBaseDirectory>
|
|
<!--依赖jar包以及项目打包文件存储文件-->
|
<dependencySets>
|
<dependencySet>
|
<!--存储在projectName-assembly-version/lib下-->
|
<outputDirectory>lib</outputDirectory>
|
</dependencySet>
|
</dependencySets>
|
|
<files>
|
<file>
|
<fileMode>775</fileMode>
|
<source>target/${project.build.finalName}.jar</source>
|
<destName>demo-maven-assembly.jar</destName>
|
<outputDirectory>./target</outputDirectory>
|
</file>
|
</files>
|
|
<fileSets>
|
<fileSet>
|
<directory>src/main/resources</directory>
|
<outputDirectory>./conf</outputDirectory>
|
<includes>
|
<include>*.yml</include>
|
<include>*.properties</include>
|
</includes>
|
</fileSet>
|
<fileSet>
|
<fileMode>775</fileMode>
|
<directory>deploy/bin</directory>
|
<outputDirectory>./bin</outputDirectory>
|
</fileSet>
|
<fileSet>
|
<directory>${basedir}</directory>
|
<includes>
|
<include>*.md</include>
|
</includes>
|
</fileSet>
|
|
</fileSets>
|
|
</assembly>
|