pom5

<assembly
xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0 http://maven.apache.org/xsd/assembly-1.1.0.xsd">
<id>release</id>
<formats>
<format>zip</format>
</formats>
<includeBaseDirectory>false</includeBaseDirectory>
<fileSets>
<fileSet>
<directory>${project.build.directory}</directory>
<includes>
<include>*.war</include>
</includes>
<outputDirectory>ear</outputDirectory>
</fileSet>
<fileSet>
<directory>${project.build.directory}</directory>
<includes>
<include>**/*.xml</include>
</includes>
<outputDirectory>config</outputDirectory>
</fileSet>
</fileSets>
<!-- 将scope为runtime的依赖包打包到lib目录下。 -->

<dependencySets>
<dependencySet>
<useProjectArtifact>false</useProjectArtifact>
<outputDirectory>sharelibrary</outputDirectory>
<excludes>
<exclude>**/*.war</exclude>
</excludes>

</dependencySet>
</dependencySets>
</assembly> 

你可能感兴趣的:(pom)