在 Eclipse (Galileo) 中安装 Maven 插件 (m2eclipse) 时出现问题

发布于 2024-09-01 03:14:35 字数 551 浏览 7 评论 0原文

我已经安装了 Eclipse Galileo(适用于 Java EE 开发人员),现在我正在尝试安装 m2eclipse Maven 插件。

我遵循 http://m2eclipse.sonatype.org/installing-m2eclipse.html< 中描述的基本步骤/a>,看起来安装得很好。但是,安装后重新启动 Eclipse 后,它似乎不在任何地方。例如,我应该能够创建一个新的 Maven 项目,但是当新项目向导打开时,没有 Maven 的文件夹(我也无法在现有项目的上下文菜单中找到任何对它的引用)。

当我单击“帮助”>关于 Eclipse >安装详细信息,我在“已安装软件”选项卡中找到“Maven Integration for Eclipse(必需)”,这又表明安装成功(但我在“插件”选项卡下找不到它,应该是那里也有?)...

我觉得我只是错过了一些非常明显的东西,但现在我只是没有看到它...

I have Eclipse Galileo (for Java EE Developers) installed, and I'm now trying to get the m2eclipse Maven plugin installed as well.

I follow the basic steps described at http://m2eclipse.sonatype.org/installing-m2eclipse.html, and it seems to be installing just fine. However, after restarting Eclipse after the install it doesn't seem to be anywhere. I should for instance have the ability to create a new maven project, but when the new-project wizard opens, there is no folder for Maven (I also cannot find any reference to it in the context menus of the existing projects I have).

When I click at Help > About Eclipse > Installation Details, I find "Maven Integration for Eclipse (Required)" in the tab "Installed Software", yet another thing pointing towards a successful installation (but I can't find it under the "Plug-ins" tab, should it be there too?)...

I feel like I'm just missing something very obvious, but right now I just don't see it...

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(6

岁月如刀 2024-09-08 03:14:36

我自己设法找到了答案:

我已将 Eclipse 安装文件夹放在 c:\Program Files\ 下,但是当我将其直接移到 c:\ 下时,插件安装正常工作。我认为这是因为 Eclipse 不允许写入其自己的安装文件夹(但我没有从 Windows 中得到常见的问题,即有东西试图访问程序文件......)。

在某种程度上,我觉得我应该为自己之前没有想到这一点而感到有点羞愧。另一方面,可能会出现一些合理的错误消息,指出插件安装过程中出现了某些问题......

好吧,我希望这至少对其他人也有帮助:)

I managed to find the answer to this myself:

I had put the Eclipse installation folder under c:\Program Files\, but when I moved it directly under c:\ instead, the plug-in installation worked just as it should. I assume that is because Eclipse wasn't allowed to write to its own installation folder (but I didn't get the usual question from Windows that something was trying to access Program Files either...).

In one way I feel like I should be a bit ashamed that I didn't think of this before. On the other hand though, there could have been some reasonable error message stating that something failed during the plug-in installation...

Well, I hope this at least helps somebody else as well :)

苹果你个爱泡泡 2024-09-08 03:14:36

您是否检查了m2eclipse安装要求?< br>
特别是,您需要 WTP。

“Eclipse 的 Maven 集成”(核心功能)和可选的“Maven POM 编辑器”功能依赖于 WST 的“Eclipse XML 编辑器和工具”功能
“WTP 的 Maven 集成”功能为 WTP 提供 Maven 项目配置

Did you check the m2eclipse installation requirements?
In particular, you need WTP.

"Maven integration for Eclipse" (core feature) and optional "Maven POM Editor" feature depend on the "Eclipse XML Editors and Tools" feature from WST
"Maven integration for WTP" feature provides Maven project configuration for WTP

仅冇旳回忆 2024-09-08 03:14:36

您是否安装了以前版本的 m2eclipse?您之前是否卸载了它以安装最新版本?以防万一,以下注释适用于您吗?

有关 0.9.8 工作区不兼容性的注意事项:如果您正在使用
m2eclipse 0.10.0 的工作区
包含在以下创建的项目
m2eclipse 0.9.8,您必须删除
workspaceState.ser 文件。这
workspaceState.ser 文件位于
在工作区目录中
$workspacedir/.metadata/.plugins/org.maven.ide.eclipse/workspaceState.ser。
如果删除此文件,m2eclipse
0.10.0 将根据需要重新生成它。

就我而言,卸载以前的 m2eclipse 版本不起作用,我必须重新安装 Eclipse(也许也可以尝试这个)。

关于插件选项卡,这就是我所拥有的(以确认您一定应该找到一些东西):

alt text http://www.imagebanana.com/img/84h6mw8z/screenshot_008.png

请注意,我还从 m2eclipse Extras 更新站点安装了一些附加功能: http://m2eclipse.sonatype.org/sites/m2e-extras

Did you have a previous version of m2eclipse installed? Did you uninstall it before to install the latest version? Just in case, does the following note applies to you?

Note about 0.9.8 Workspace Incompatibility: If you are using
m2eclipse 0.10.0 with a workspace that
contains projects created under
m2eclipse 0.9.8, you must remove the
workspaceState.ser file. The
workspaceState.ser file is located
within the workspace directory in
$workspacedir/.metadata/.plugins/org.maven.ide.eclipse/workspaceState.ser.
If you remove this file, m2eclipse
0.10.0 will regenerate it as needed.

In my case, uninstalling the previous m2eclipse version didn't work and I had to start with a fresh Eclipse install (maybe try this also).

Regarding the plugin tab, this is what I have (to confirm that you should definitely find something):

alt text http://www.imagebanana.com/img/84h6mw8z/screenshot_008.png

Note that I also installed some extras from m2eclipse Extras Update Site: http://m2eclipse.sonatype.org/sites/m2e-extras

滥情空心 2024-09-08 03:14:36

我可以通过进入程序文件,右键单击 eclipse.exe 文件并选择“以管理员身份运行”来解决此问题。当我重新启动 Eclipse 时,它​​说我没有安装插件,所以我重新安装,我的问题就解决了。

I was able to solve this problem by going into Program Files, right click on the eclipse.exe file and select "Run as administrator". When I restarted Eclipse it said I had no plugins installs so I reinstalled and my problems were solved.

带刺的爱情 2024-09-08 03:14:36

问题已解决
我遇到了同样的问题,我使用了以下软件网站:
[“M2Eclipse - http://download.eclipse.org/technology/m2e/releases/1.0](不带方括号)在 Eclipse 3.7.0 (Indigo) 中下载 M2Eclipse 插件。有关更多信息,请参阅 这个

PROBLEM SOLVED
I had this same problem and I used the following software site:
["M2Eclipse - http://download.eclipse.org/technology/m2e/releases/1.0] (without square brackets) to download the M2Eclipse plugin in Eclipse 3.7.0 (Indigo). For more information refer this.

世态炎凉 2024-09-08 03:14:36

要解决“无法在 eclipse 中运行 Maven 插件”的问题,可以通过更改 .m2 文件夹的管理员权限来解决。右键单击 .m2 文件夹并转到网络共享。赋予所有用户所有权利。重新启动 eclipse,maven 选项将开始出现在 Eclipse 中。

To solve the problem of 'not getting Maven plugin running in eclipse' , it can be solved by altering admin rights to the .m2 folder . Right click on .m2 folder and go to network sharing. give all rights to all users. Restart eclipse and maven options will start to appear in Eclipse.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文