标签:
在pom文件中加入如下配置
<plugin> <artifactId>maven-resources-plugin</artifactId> <executions> <execution> <id>copy-resources</id> <phase>compile</phase> <goals> <goal>copy-resources</goal> </goals> <configuration> <!-- test可以在环境变量中定义,也可以将下面写成绝对地址--> <outputDirectory>${test}/resource</outputDirectory> <resources> <resource> <!-- basedir标识所有工程--> <directory>${basedir}/src/main/resources</directory> <filtering>true</filtering> </resource> </resources> </configuration> </execution> </executions> </plugin>
标签:
原文地址:http://my.oschina.net/kimyeongnam/blog/509203