1. Modify the. project file under Maven works as follows
<?XML version= "1.0" encoding= "UTF-8"?><projectdescription> <name>Coshaho</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>
2. Add the. classpath file
<?XML version= "1.0" encoding= "UTF-8"?><Classpath> <ClasspathentryKind= "src"Output= "Target/classes"Path= "Src/main/java"> <attributes> <attributename= "Optional"value= "true"/> <attributename= "Maven.pomderived"value= "true"/> </attributes> </Classpathentry> <ClasspathentryKind= "src"Output= "Target/test-classes"Path= "Src/test/java"> <attributes> <attributename= "Optional"value= "true"/> <attributename= "Maven.pomderived"value= "true"/> </attributes> </Classpathentry> <ClasspathentryKind= "Con"Path= "Org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER"> <attributes> <attributename= "Maven.pomderived"value= "true"/> </attributes> </Classpathentry> <ClasspathentryKind= "Con"Path= "Org.eclipse.jdt.launching.JRE_CONTAINER"/> <ClasspathentryKind= "Output"Path= "Target/classes"/></Classpath>
Eclipse does not have a build path solution after creating a MAVEN project