在动态Web项目中使用m2e插件 [英] Using m2e plugin in a Dynamic Web Project

查看:170
本文介绍了在动态Web项目中使用m2e插件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Eclipse Indigo中有一个现有的动态Web项目,并安装了m2e插件。在我的eclipse设置的另一个版本中,我不太记得(我的hdd崩溃)我可以右键单击项目 - > Maven - >启用依赖管理。



我的动态Web项目在我目前的eclipse版本中已经消失了。现在要走什么路了?我尝试右键单击项目文件夹 - > configure - >转换为maven项目,但失败并出现错误。

解决方案

M2Eclipse有从名为m2e的Sonatype迁移到Eclipse项目。因此,在您的Eclipse Indigo中,您已经安装了m2e,而您旧的Eclipse版本中的旧Maven项目是根据您的右键单击描述使用M2Eclipse创建的。现在在正常情况下,一切都应该是完美无缺的,我们不会有这个讨论。不幸的是,随着项目的移动,命名空间从 org.maven.ide.eclipse 更改为 org.eclipse.m2e.core 和使用M2Eclipse创建的旧Maven项目不会立即被识别为m2e中的Maven项目。 以下是有关如何相应迁移项目的说明


I have an existing Dynamic Web Project in Eclipse Indigo and the m2e plugin installed. In another version of my eclipse setup that I dont quite remember (my hdd crashed) I could just right click on the project -> Maven -> Enable Dependency Management.

This menu is gone for my Dynamic Web Project in my current eclipse version. Whats the way to go now? I tried right click on the project folder -> configure -> convert to maven project but that fails with errors.

解决方案

M2Eclipse has migrated to an Eclipse project from Sonatype called m2e. Therefore in you Eclipse Indigo you have installed m2e whereas your old Maven projects in the older Eclipse version were created with M2Eclipse according to your right-click description. Now under normal circomstances everything should be working flawlessly and we wouldn't have this discussion. Unfortunately with the move of the project the namespace has changed from org.maven.ide.eclipse to org.eclipse.m2e.core and old Maven projects created with M2Eclipse are not immediately recognised as Maven projects in m2e. Here's a description of how to migrate your projects accordingly.

这篇关于在动态Web项目中使用m2e插件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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