Modify the project. Projects file to ensure that there are maven2builder and Maven2nature2 tags: <?xml version= "1.0" encoding= "UTF-8"?>< projectdescription><name>projectname</name><comment></comment><projects></ projects><buildspec><buildcommand><name>org.eclipse.jdt.core.javabuilder</name>< Arguments></arguments></buildcommand><buildcommand><name> org.eclipse.m2e.core.maven2builder</name><arguments></arguments></buildcommand></ Buildspec><natures><nature>org.eclipse.jdt.core.javanature</nature><nature> org.eclipse.m2e.core.maven2nature</nature></natures></projectdescription>. classpath file:
<classpath> <classpathentry kind="src" path="src/test/java" output="target/test-classes" including="**/*.java"/> <classpathentry kind="src" path="src/main/java" including="**/*.java"/> <classpathentry kind="output" path="target/classes"/> <classpathentry kind="var" path="M2_REPO/junit/junit/3.8.1/junit-3.8.1.jar" sourcepath="M2_REPO/junit/junit/3.8.1/junit-3.8.1-sources.jar"/> <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/></classpath>
There is no Maven menu problem with the MAVEN project right button in eclipse