<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/assembl/1.1.0 http://maven.apache.org/xsd/assembly-1.1.0.xsd">
<id>bin</id>
<baseDirectory>/</baseDirectory>
<formats>
<format>zip</format>
</formats>
<fileSets>
<fileSet>
<directory>src/main</directory>
<outputDirectory>/</outputDirectory>
<excludes>
<exclude>src/main/dml</exclude>
</excludes>
</fileSet>
</fileSets>
</assembly>
这是我的 assemble.xml。src/main包含几个文件夹。我想要exclude一些文件夹,例如src/主/dml,但并不排除这种情况。
用这个excludes
来匹配dml
文件夹及其内容。确保使用相对于的路径<directory>src/main</directory>
<excludes>
<exclude>dml/**</exclude>
</excludes>
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)