排除在Maven构建过程中复制文件或文件列表

时间:2017-12-12 15:26:31

标签: maven pom.xml

如何在maven构建过程中排除文件被复制:

<copy todir="target/classes/META-INF/config" overwrite="true" failonerror="false">
    <fileset dir="src/main/resources/"  />
    <!-- something like <fileset dir="src/main/resources/" excludes="fileA.properties" /> for excluding fileA.properties from being copied to the target folder -->
</copy>

0 个答案:

没有答案