作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
<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>
最佳答案
试试这个排除:
<excludes>
<exclude>src/main/dml/**</exclude>
</excludes>
<excludes>
<exclude>dml/**</exclude>
</excludes>
关于maven - 如何在通过 maven 创建 zip 文件时排除某些文件夹,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16214086/
我是一名优秀的程序员,十分优秀!