在 Eclipse (Galileo) 中安装 Maven 插件 (m2eclipse) 时出现问题
我已经安装了 Eclipse Galileo(适用于 Java EE 开发人员),现在我正在尝试安装 m2eclipse 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(6)
我自己设法找到了答案:
我已将 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 :)
您是否检查了m2eclipse安装要求?< br>
特别是,您需要 WTP。
Did you check the m2eclipse installation requirements?
In particular, you need WTP.
您是否安装了以前版本的 m2eclipse?您之前是否卸载了它以安装最新版本?以防万一,以下注释适用于您吗?
就我而言,卸载以前的 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?
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
我可以通过进入程序文件,右键单击 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.
要解决“无法在 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.