就两个标签
<build>
<resources>
<resource>
<directory>${project.basedir}/src/main/resources</directory>
<filtering>true</filtering>
</resource>
</resources>
<testResources>
<testResource>
<directory>${project.basedir}/src/test/resources</directory>
<filtering>true</filtering>
</testResource>
</testResources>
</build>
标签:project,配置文件,testresources,basedir,maven,resources
From: https://www.cnblogs.com/jintaocode/p/17589867.html