将现有文件夹添加到Eclipse项目(STS)

Rob*_*ert 5 eclipse

我在Eclipse的Problems窗口中有错误说....

The project was not built due to "Error deleting resource 'ProjectName/target/classes/log4j.xml' from the workspace tree." .Fix the problem, then try refreshing this project and building it since it may be inconsistent.

在此输入图像描述

我遇到的问题是classes/log4j.xml文件系统上存在,但我无法导入它.当我转到文件>导入>常规>文件系统并选择类/ log4j.xml作为源时,我收到一条消息,说"源是目的地的层次结构",它不允许我完成向导.

无法导入截图

我需要做什么才能让项目识别出来

Max*_*tin 5

提供目标文件夹,参见下面的Into folder文本字段From directory

由于它是空的,Eclipse认为你想将log4j.xml添加到同一个地方