---
title: "解决Maven插件未同步empty folder 至 Ouput folder中"
author: "berdy"
date: "2013-08-20T16:46:36Z"
tags: []
categories: ["开源软件"]
slug: "maven-empty-folder-ouput-folder"
draft: false
lastmod: "2013-08-20T16:46:36Z"
id: 1927667
url: "https://berdy.iteye.com/blog/1927667"
---

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

```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。