简体   繁体   English

在Eclipse中创建了一个maven项目,移动了目录位置,现在如何打开它?

[英]Created a maven project in Eclipse, moved directory location, how to open it now?

I created a maven2 project in eclipse, and then I moved the folder to another location. 我在eclipse中创建了一个maven2项目,然后将文件夹移动到另一个位置。

How can I open that project now in eclipse, I can't seem to find a 'open an exisiting maven' project or the like? 我现在如何才能在Eclipse中打开该项目,我似乎找不到“打开现有的Maven”项目或类似项目?

Opening the file pom.xml just opens the file, kinda stuck sorry. 打开文件pom.xml只会打开文件,有点抱歉。

If you are using the M2Eclipse plugin for Eclipse, you can right-click in the Package Explorer view and then Import... > Maven > Existing Maven projects : 如果您将M2Eclipse插件用于Eclipse,则可以在Package Explorer视图中右键单击 ,然后单击 Import ...> Maven> Existing Maven项目

替代文字

If you are using the maven-eclipse-plugin, then simply import it as an Import... General > Existing Projects into workspace . 如果您正在使用maven-eclipse-plugin,则只需将其作为Import ... General> Existing Projects导入到工作空间即可

Try File->Import->General->Existing Project into Workspace. 尝试将文件->导入->常规->现有项目导入工作区。

替代文字

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

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