Maven 项目和 Eclipse 工作区 [英] Maven project and Eclipse workspace
问题描述
我使用 Netbeans 已经有一段时间了,现在我正在转向 Eclipse.
I have been working with Netbeans quite a while and I am now moving to Eclipse.
基本上我有一个 Maven 项目,我想使用 Eclipse 处理它.
Basically I have a Maven project that I would like to work on using Eclipse.
我不确定的是我是否需要将我的 Eclipse 工作区指向我的项目超级 pom 所在的目录,或者 Eclipse 工作区是否需要指向一个干净/空目录.
What I am not sure about is whether I need to point my Eclipse workspace to the directory where my project super pom is located or whether the Eclipse workspace needs to point to a clean/empty directory.
我的问题基本上是:
- 源文件最终是否位于 Eclipse 工作区目录中?
谁能给点建议?
问候,
推荐答案
如果您安装了 m2e 或 m2eclipse 插件,您只需执行Import..."然后Existing Maven Projects"并将其指向超级波姆它会将找到的所有模块作为单独的项目导入.
If you have the m2e or m2eclipse plugin installed, you can just do "Import..." then "Existing Maven Projects" and point it at the super-pom. It'll import all the modules it finds, as separate projects.
这篇关于Maven 项目和 Eclipse 工作区的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!