Maven not showing up in Eclipse (Kepler) even after m2e install

和自甴很熟 提交于 2019-12-06 23:42:56

问题


I've seen that others have had this problem where Maven doesn't show up for them in Eclipse after installing the m2e plugin, but most of the solutions seem to suggest doing something like "Configure>Convert to Maven." But Maven is not showing up for me in the Configure list, nor is it showing up in Console>Open Console or the File>New list. I see some solutions refer to editing the project's classpath, but I don't have a clear understanding of how to do that. I'm trying to begin working through a book on Java EE7, and it uses Maven in the examples. Can someone help?


回答1:


Check the .log file in the .metadata folder in your workspace folder. Delete the .log file and then restart Eclipse using the -clean option. If maven doesn't appear in the UI the look at the .log file for hints of why maven couldn't be loaded.




回答2:


Have you tried to download Eclipse Java EE (http://www.eclipse.org/downloads/packages/eclipse-ide-java-ee-developers/keplerr)? It already has Maven installed




回答3:


In the end, I just uninstalled and reinstalled Eclipse. Not sure what was causing the problem in the first place, but this seems to have done the trick. I made sure to install the Java EE version of Eclipse and Maven is showing up now.




回答4:


First, please ensure that m2e is correctly install. To test this, just right click on the project and you should be able to see 'Maven' in the context menu.

If it is showing, just choose 'Update project config'; as soon as this is updated, the m2e recognizes and build the project as maven.

After that, please check if project property-> build path -> lib tab shows maven dependency along with default JRE in the library path.




回答5:


It is basically permission problem if u are using linux. Delete the eclipse folder and workspace directory(/home/user/workspace). Extract the eclipse again using root. Give full permission to eclipse folder and launch eclipse using root. then install maven plugin from marketplace or installNewSoftware page. It should work then.




回答6:


I had this same problem and I discovered that, oddly enough, closing and reopening Eclipse is NOT the same thing as "restarting" Eclipse. When it asks if you want to restart now either choose Yes or choose Restart from the File menu.



来源:https://stackoverflow.com/questions/18687621/maven-not-showing-up-in-eclipse-kepler-even-after-m2e-install

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!