首页 > 解决方案 > 如何让 Eclipse 在源代码文件夹以外的不同文件夹中创建 .classpath、.settings 文件?

问题描述

我正在尝试以下内容:

- I created a workspace under "C:\workspace"
- I created a sourcecode folder under "C:\sourcecode\maven_project_1"
- I opened eclipse with the workspace
- I imported maven_project_1 as maven project using the option "Import existing maven project".
- I expected 
    - the project would get imported. This happened right.
    - the eclipse files i.e. .classpath, .settings etc would get created under "C:\workspace\maven_project_1" but they are created under "C:\sourcecode\maven_project_1" instead.

有没有办法在“C:\workspace\maven_project_1”下创建文件?

这样我觉得源代码将不受 Eclipse 设置的影响。

如果可能,请提出正确的方法来做到这一点。谢谢你。

标签: javaeclipsespring-tool-suite

解决方案


推荐阅读