maven集成在eclipse新项目中检出但不能导航 [英] maven integration in eclipse new project checked out but can't navigate

查看:186
本文介绍了maven集成在eclipse新项目中检出但不能导航的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在Eclipse中使用maven,即使我有m2e。



我从CVS检出了一个maven项目,无法在任何地方浏览。如果我尝试参考>项目,我会弹出一个说法:


打开编辑器时出现问题原因:服务不存在。


服务是主项目的名称,其中有子项目它。所有这些都成功构建,所以我不知道为什么Eclipse不起作用。



我怀疑与类路径有关的东西,但是不知道如何编辑它,因为它不可用项目的属性。我实际上尝试手动创建一个.classpath文件,但没有帮助。



我还将项目转换为一个maven项目,但这并没有帮助。 >

任何想法?我使用Eclipse JUNO。

解决方案

我想到了我的问题。我不得不从CVS查看该项目。然后(这是重要的部分),在eclipse中执行现有项目的maven导入。创建了mavenready项目,我可以使用所有IDE的功能。


I am struggling with maven in Eclipse even though I have m2e.

I checked out a maven project from CVS and cannot navigate anywhere. If I try References > Project, I get a pop up saying:

"Problems opening an editor Reason: services does not exist".

services is the name of the main project, which has sub projects within it. It all builds successfully so I am not sure why Eclipse does not work.

I suspect something related to classpath but have no idea how to edit it since it is not available from the project's properties. I actually tried to manually create a .classpath file but it did not help.

I also converted the project to a maven project but that did not help either.

Any ideas? I am using Eclipse JUNO.

解决方案

I figured out my issue. I had to check out the project from CVS. Then (that's the important part), perform a maven import of an existing project within eclipse. That created maven "ready" projects where I could use all of the IDE's functionality.

这篇关于maven集成在eclipse新项目中检出但不能导航的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆