MAVEN在打包将包下面的配置文件也包含进去

  <build>
        <resources>
            <resource>
                <directory>src/main/java</directory>
                <excludes>
                    <exclude>**/*.java</exclude>
                </excludes>
            </resource>
        </resources>
    </build>

以上是把配置文件打到所在包下,下面的是针对resource下面的配置文件的

     <resource>
            <directory>src/main/resources</directory>
            <includes>
                <include>**/*.properties</include>
                <include>**/*.xml</include>
            </includes>
        </resource>    

 

posted @ 2016-05-06 11:51  元页  阅读(963)  评论(0编辑  收藏  举报