解决maven打包时,会编译特定文件导致文件不可用

maven打包时,过滤不编译文件类型

<plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-resources-plugin</artifactId>
        <configuration>
            <nonFilteredFileExtensions>
                <nonFilteredFileExtension>xlsx</nonFilteredFileExtension>
                <nonFilteredFileExtension>xls</nonFilteredFileExtension>
                <nonFilteredFileExtension>zip</nonFilteredFileExtension>
                <nonFilteredFileExtension>cer</nonFilteredFileExtension>
                <nonFilteredFileExtension>pfx</nonFilteredFileExtension>
                <nonFilteredFileExtension>py</nonFilteredFileExtension>
                <nonFilteredFileExtension>keystore</nonFilteredFileExtension>
            </nonFilteredFileExtensions>
        </configuration>
    </plugin>


最后修改:2020 年 03 月 19 日
如果觉得我的文章对你有用,请随意赞赏