首页 > 系统服务 > 详细

myeclipse无法导入项目

时间:2017-04-24 16:22:35      阅读:4419      评论:0      收藏:0      [点我收藏+]

MyEclipse无法导入Java项目时常遇到的两种情况:

1、Some projects cannot be imported because they already exist in the workspace

2、Some projects were hidden because they exist in the workspace directory
原因:workspace中已经存在了相同名字的项目,所以不能导入。
解决:
1、修改项目名:右击--- refactor --- rename 或 F2

2、打开项目中.project文件 --- 修改<name>projectName</name>

3、工作空间并不存在同名项目,定是还有地方记录了之前的工程信息,可能是。。。找到:\xxxxxxxx\workspace\.metadata\.plugins\org.eclipse.core.resources\.projects 文件夹,删除同名文件夹。

 

上面情况解决了还存在这个情况:当导入maven工程时说工程名报下面问题:

Project xxx already exists

 Add a version or custom suffix using "Name template" in "Advanced" settings

技术分享

解决方法:

You can use the "Advanced" option at bottom of import window, "Name template" select "[artifactId]-[version]",

"Profiles" fill the project name and version, eg:helloWord-0.0.1-SNAPSHOT

技术分享

 

 

 

 

 

 

参考:http://blog.csdn.net/albertfly/article/details/51942431

myeclipse无法导入项目

原文:http://www.cnblogs.com/chafe/p/6757398.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!