简体   繁体   English

由于错误,无法在Eclipse中导入Maven项目

[英]Cannot import maven project in eclipse due to error

I tried to import a java maven project in my computer, into eclipse sts/spring tool suite 3.9 as follows: eclipse sts > file menu > import > existing maven projects > etc. 我尝试将计算机中的Java Maven项目导入Eclipse Sts / Spring Tool Suite 3.9,如下所示:Eclipse Sts>文件菜单>导入>现有Maven项目>等等。

I got an error message box with the following message: An internal error occurred during: "Importing Maven projects". 我收到带有以下消息的错误消息框:在“导入Maven项目”期间发生内部错误。 Path for project must have only one segment. 项目路径必须只有一个细分。

I could not find any answers on google to fix this problem. 我在Google上找不到任何答案可以解决此问题。 How do I fix this error ? 如何解决此错误?

The problem was fixed by importing the project in a different way as follows: 通过采用以下不同方式导入项目来解决此问题:

eclipse sts > file menu > open projects from file system > import source = the root directory of the project (eclipse automatically detects this as a maven project) > finish. eclipse sts>文件菜单>从文件系统打开项目>导入源=项目的根目录(eclipse自动将其检测为maven项目)>完成。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM