maven pom3

<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_jar</id>
<formats>
<format>jar</format>
</formats>
<!--
<files>
<file>
<source>*.ear</source>
<destName>test.ear</destName>
<outputDirectory>lib</outputDirectory>
</file>

</files> -->
<fileSets>
<fileSet>
<directory>${project.build.outputDirectory}/</directory>
<includes>
<include>**/*.class</include>
</includes>

<outputDirectory></outputDirectory>

</fileSet>
</fileSets>
<!-- 将scope为runtime的依赖包打包到lib目录下。 -->

<dependencySets>
<dependencySet>
<useProjectArtifact>true</useProjectArtifact>
<outputDirectory>lib1test</outputDirectory>
<scope>runtime</scope>
</dependencySet>
</dependencySets>
</assembly> 

你可能感兴趣的:(maven)