如何将 Eclipse 项目导入 IntelliJ IDEA?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/13876752/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-10 21:28:03  来源:igfitidea点击:

How to import Eclipse projects to IntelliJ IDEA?

eclipseintellij-idea

提问by MayoMan

I want to import my Eclipse projects into IntelliJ IDEA, so I went to the IntelliJ IDEA help page:

我想将我的 Eclipse 项目导入 IntelliJ IDEA,所以我去了IntelliJ IDEA 帮助页面

If no project is currently open in IntelliJ IDEA, click Import Project on the Welcome screen. Otherwise, select File | Import Project.

如果当前在 IntelliJ IDEA 中没有打开项目,请单击欢迎屏幕上的导入项目。否则,选择文件 | 导入项目。

Problem is there is no Import Project option on the welcome screen and there is no Import Project option in the file menu.

问题是欢迎屏幕上没有导入项目选项,文件菜单中没有导入项目选项。

Any ideas how to do this?

任何想法如何做到这一点?

I checked for updates and it's telling me my 11.1.3 version is the latest, even though the help page has 12.0 in the title bar.

我检查了更新,它告诉我我的 11.1.3 版本是最新的,即使帮助页面的标题栏中有 12.0。

采纳答案by nkr

In IntelliJ IDEA 11.1 you can find the import option in the New Project dialog. You can find it at File | New Project.

在 IntelliJ IDEA 11.1 中,您可以在“新建项目”对话框中找到导入选项。您可以在文件 | 中找到它。新项目

回答by Matthias A. Eckhart

In IntelliJ IDEA 14.1.4you can import a project with the following existing sources:

IntelliJ IDEA 14.1.4 中,您可以使用以下现有源导入项目:

  • Eclipseproject (.project) or classpath (.classpath) file
  • Mavenproject file (pom.xml)
  • Bnd/Bndtoolsworkspace (workspace/cnf)
  • Flash Builderproject file (.project, *.fxp, *.fxpl)
  • Gradlebuild script (*.gradle)
  • Eclipse项目 ( .project) 或类路径 ( .classpath) 文件
  • Maven项目文件 ( pom.xml)
  • Bnd/Bndtools工作区 ( workspace/cnf)
  • Flash Builder项目文件 ( .project, *.fxp, *.fxpl)
  • Gradle构建脚本 ( *.gradle)

Go to FileNewProject from Existing Sources…and a dialog will open that allows you to open one of the supported files or directories.

转到FileNewProject from Existing Sources...将打开一个对话框,允许您打开其中一个受支持的文件或目录。

IntelliJ IDEA 14.1.4 - Project from Existing Sources…

IntelliJ IDEA 14.1.4 - 来自现有来源的项目……

回答by CrazyCoder

In IntelliJ IDEA 11 you should use File| New Project, Import project from external model.

在 IntelliJ IDEA 11 中你应该使用File| New Project,从外部模型导入项目

Also check that Eclipse Interoperabilityplug-in is enabled in Settings| Plugins.

还要检查是否在|中启用了Eclipse Interoperability插件SettingsPlugins.