当前位置: 代码迷 >> XML/SOAP >> Maven打包时怎么把配置文件(xml等)也放到classes目录里
  详细解决方案

Maven打包时怎么把配置文件(xml等)也放到classes目录里

热度:3454   发布时间:2014-01-13 17:16:02.0
Maven打包时如何把配置文件(xml等)也放到classes目录里
BUILD节点配置如下:
<build>
        <finalName>WEBAPP</finalName>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-surefire-plugin</artifactId>                 
                <configuration>
                    <skip>true</skip>
                </configuration>
            </plugin>
        </plugins>
         <resources>
        <resource>
            <directory>src/main/resources</directory>
            <includes>
            <include>**/*.properties</include>
            <include>**/*.xml</include>
            </includes>
            <filtering>true</filtering>        
        </resource>
    </resources>
    </build>

?

  相关解决方案