【问题标题】:Unable to import Eclipse project in intellij无法在 intellij 中导入 Eclipse 项目
【发布时间】:2021-02-04 09:50:26
【问题描述】:

我是 IntelliJ 的新手,尝试按照网站 https://www.jetbrains.com/help/idea/import-project-from-eclipse-page-1.html 上解释的步骤导入 eclipse 项目,我可以导入几乎所有项目,除了一个。我真正想要导入的内容很大,包括硒和测试,并且不包含“src 文件夹”。每次我尝试导入时,我都看不到项目/模块文件夹,而只有外部库,如下图所示。

【问题讨论】:

  • idea.log 中是否有任何错误/警告(“Help | Show Log in..”)?
  • 你期待什么?没有您提到的src 文件夹。是否应该显示另一个文件夹?
  • 请发布您的文件夹结构。
  • @y.bedrov 没有显示错误
  • @Peter 项目中有很多包,每个包都包含大约 3 个我正在使用 testng 的类,所以我不一定需要 src 文件夹来运行这些包。它在eclipse中运行良好

标签: java eclipse intellij-idea import


【解决方案1】:
rather than importing an eclipse project, can't you import the same project from local directory? 

In InteliIJ, 
File->
   New-> 
       ->Project from existing source 
         -> (select the project folder) 
Also,

Line
:

   Directory Structure :
         1   -ProjectFolderName 
         2     -ProjectFolderName    
         3       -proj files 

Note: sometimes, while importing the project, if you import the project folder(line 1) ,rather than line 2. since both have same name. then the case happens which you showed in the screenshot. IntelliJ fails to import the correct project files. that's when you see something like "external libraries" only.

【讨论】:

  • 好的,我按照您的步骤进行操作,但是在导入项目而不是选择从外部模型导入并选择 eclipse 时,我点击了从现有来源创建项目
  • 没关系,目的是将项目导入intelliJ,我是这么想的
  • 如果它解决了您的问题,您可以将答案标记为有用或正确或赞成
猜你喜欢
  • 2018-11-10
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2022-12-02
  • 2014-09-16
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多