面对为Eclipse Juno安装m2e maven插件的问题

时间:2023-01-25 14:56:59

I installed JUNO Eclipse and then wanted to get the maven plugin for eclipse. After some searching I got to know that I can install the plugin using eclipse market place. So I searched the plugin and installed it successfully but when I restarted eclipse, I cannot see Maven option when I right click on any project. When I click on WINDOWS--> PREFERENCES , I can see the Maven option there. It means, maven got installed but not sure if completely.

我安装了JUNO​​ Eclipse,然后想要获取eclipse的maven插件。经过一番搜索,我知道我可以使用eclipse市场安装插件。所以我搜索了插件并成功安装了但是当我重新启动eclipse时,当我右键单击任何项​​目时,我看不到Maven选项。当我点击WINDOWS - > PREFERENCES时,我可以在那里看到Maven选项。这意味着,maven已经安装但不确定是否完全。

I reinstalled it again but still no luck. Can anyone help?

我重新重新安装它但仍然没有运气。有人可以帮忙吗?

FYI, I am using maven 3.0.4

仅供参考,我正在使用maven 3.0.4

2 个解决方案

#1


0  

If your project is still a standard Java project, then you have to enable Maven for this project. You can do this by right-clicking on the project, then choose Configure -> Convert to Maven project. Then you have to type group id, artifact id etc. and the pom.xml is created for you.

如果您的项目仍然是标准Java项目,那么您必须为此项目启用Maven。您可以通过右键单击项目,然后选择Configure - > Convert to Maven project来完成此操作。然后你必须输入组ID,工件ID等,然后为你创建pom.xml。

#2


0  

You need to make sure you have installed the Java JDK and add it to the Preferences -> Java -> Installed JREs.

您需要确保已安装Java JDK并将其添加到Preferences - > Java - > Installed JREs。

#1


0  

If your project is still a standard Java project, then you have to enable Maven for this project. You can do this by right-clicking on the project, then choose Configure -> Convert to Maven project. Then you have to type group id, artifact id etc. and the pom.xml is created for you.

如果您的项目仍然是标准Java项目,那么您必须为此项目启用Maven。您可以通过右键单击项目,然后选择Configure - > Convert to Maven project来完成此操作。然后你必须输入组ID,工件ID等,然后为你创建pom.xml。

#2


0  

You need to make sure you have installed the Java JDK and add it to the Preferences -> Java -> Installed JREs.

您需要确保已安装Java JDK并将其添加到Preferences - > Java - > Installed JREs。