简体   繁体   English

无法在 Eclipse 中导入 Maven 项目,因为下一步和完成按钮被禁用

[英]Unable to import Maven Project in Eclipse as Next and Finish buttons are disabled

Initially, I have imported Maven Project to eclipse then got deleted accidentally from Workspace, and delete project contents on disk were unchecked.最初,我已将 Maven 项目导入到 Eclipse,然后从 Workspace 中意外删除,并且未选中删除磁盘上的项目内容。

I tried to import the Maven project again to eclipse but facing Next and Finish buttons are disabled though have deleted .m2, .eclipse, .mc-ad, .p2 from the user's folder.我尝试再次将 Maven 项目导入到 eclipse 中,但面对 Next 和 Finish 按钮被禁用,尽管已从用户文件夹中删除了 .m2、.eclipse、.mc-ad、.p2。 There is no settings.xml in the Users folder.用户文件夹中没有 settings.xml。

I have installed Eclipse in another place also, and tried, but Observed the same behavior.我也在另一个地方安装了 Eclipse,并尝试过,但观察到相同的行为。

Could you please update me on how to import the Maven project again, if deleted from the workspace?如果从工作区中删除,您能否告诉我如何再次导入 Maven 项目?

Eclipse Screenshot Eclipse 截图

Thanks for your support.谢谢您的支持。

Project Screenshot项目截图

There is no Maven project (pom.xml) in the directory you are looking at.您正在查看的目录中没有 Maven 项目 (pom.xml)。 Change the root directory to the directory your project is in (in your case probably not the same as the workspace).将根目录更改为您的项目所在的目录(在您的情况下可能与工作区不同)。

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

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