maven程序集moduleSet不复制依赖项

时间:2012-05-22 09:28:58

标签: maven

我使用maven-assembly-plugin创建tar.gz文件并使用'moduleSets'将项目的依赖项复制到名为'dep'的文件夹中:

<assembly xmlns="http://maven.apache.org/Assembly/1.1.0"  xsi:noNamespaceSchemaLocation="http://maven.apache.org/xsd/assembly-1.1.2.xsd" > <id>install</id>
<formats>
    <format>tar.gz</format>
</formats>
<includeBaseDirectory>false</includeBaseDirectory>
<fileSets>
    <fileSet>
    <includes>
    <include>README*</include>
<include>LICENSE*</include>
<include>NOTICE*</include>
<include>RELEASE-NOTES*</include>
</includes>
<outputDirectory>/</outputDirectory>
</fileSet>
</fileSets>
<moduleSets>
<moduleSet>
<includes>
<include>myGroupId:myArtifactId</include>
</includes>
<binaries>
<includeDependencies>true</includeDependencies>
<outputDirectory>dep</outputDirectory>
</binaries>
</moduleSet>
</moduleSets>
</assembly>

但nothigs在创建的tar.gz文件中复制,并且不会创建名为'dep'的文件夹。我有没有误会?

0 个答案:

没有答案