解决Maven插件未同步empty folder 至 Ouput folder中

使用eclipse的m2e插件创建了一个工程,在src/main/resources下添加了一个空目录 test发现m2e插件在build project的时候,并未将test 同步到原来设置的output folder下。可以通过在project的pom.xml文件中配置插件的属性解决

<plugin>
	<groupId>org.apache.maven.plugins</groupId>
	<artifactId>maven-resources-plugin</artifactId>
	<configuration>
		<includeEmptyDirs>true</includeEmptyDirs>
	</configuration>
</plugin>


设置maven-resources-plugin的includeEmptyDirs 为true,即可同步empty folder。

猜你喜欢

转载自berdy.iteye.com/blog/1927667