maven 过滤webapp下的文件

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>3.1.0</version>
<configuration>
    <warSourceExcludes>img/**</warSourceExcludes>
</configuration>
</plugin>    

  以上是方法

 

<build>        
        <resources>
            <resource>
                <directory>src/main/Java</directory>
                <!-- 包含 -->
                <includes>
                    <include>**/*.vm</include>
                    <include>**/*.properties</include>
                </includes>
                <!-- 排除  -->
                <excludes>
                <exclude>**/*.log</exclude>
                </excludes>
            </resource>
            <resource>
                <directory>src/main/resources</directory>
                <filtering>true</filtering>
                <includes>
                    <include>**/*.*</include>
                </includes>
                <excludes>
                <exclude>**/*.log</exclude>
                </excludes>
            </resource>
        </resources>
</build>

  以上方法不能对webapp下的文件实现过滤功能。。。。

posted on 2017-06-23 09:29  正义的伙伴!  阅读(295)  评论(0编辑  收藏  举报

导航

//增加一段JS脚本,为目录生成使用