解决Eclipse 导入 maven 项目时报错: “Can‘t import project XXXX from an existing workspace folder”

当导入maven 项目时报错: “Can't import project XXXX from an existing workspace folder” 时可以尝试下面的办法:

1.Click on Windows tab then Preference.

  点击Window ->Preference

解决Eclipse 导入 maven 项目时报错: “Can‘t import project XXXX from an existing workspace folder”_第1张图片

2.Search for the Workspaces first and remove all of them from list(which you can add later eventually)

   先在输入框内查询‘workspace’ 然后删除所有的workspace

解决Eclipse 导入 maven 项目时报错: “Can‘t import project XXXX from an existing workspace folder”_第2张图片

3.Then search for Maven and choose User Setting and check your .m2 path along with the updated setting.xml(meanwhile check the proxy too)

 然后在输入框内查询‘maven’ 然后点击下面的User Setting,选择你的.m2的路径下的setting.xml文件 和repository文件夹

解决Eclipse 导入 maven 项目时报错: “Can‘t import project XXXX from an existing workspace folder”_第3张图片

4.After that restart your eclipse and import the existing maven project again.

 重启eclipse后重新导入你的maven工程

你可能感兴趣的:(自动化测试相关)