title: Issues with maven project running in eclipse, not recognized as Java project
body: <p>I've imported an existing maven project into Eclipse. I tried to set up the configurations for a JUnit test, and my project wouldn't come up as a testable project. When I typed in the project name manually, I was given the message:</p>
  
  <blockquote>
    <p>Specified project is not a java project</p>
  </blockquote>
  
  <p>I've also noticed that when typing code and trying to call a method e.g. "System.out" a message pops up when I type the period, saying:</p>
  
  <blockquote>
    <p>This compilation unit is not on the build path of a java project</p>
  </blockquote>
  
  <p>Additionally, there are no actions available when I right click the project and navigate to Build Path.</p>
  
  <p>Having looked this up on here and elsewhere, I've followed the following pieces of advice, without success:</p>
  
  <p>I've verified the existence of .project and .classpath files</p>
  
  <p>I've looked in the .project file and verified the inclusion of a javanature</p>
  
  <p>I've run mvn eclipse:eclipse</p>
  
  <p>I've right-clicked the project in the PackageExplorer > Maven > Update Project Configuration</p>
  
  <p>Java is not listed as a project facet but I'm not sure I should mess with that because I've tried clicking that, and that caused the entire project to be filled with errors (I think related to build path, but I can't quite remember). Removing Java as a facet didn't get rid of the errors and I had to re-import the project from scratch.</p>
  
  <p>Sorry if any of this is vague, and thanks for the help.</p>
  
  <p>I'm using m2eclipse.</p>
  
  <p>EDIT: Problem was solved simply by deleting the project from my workspace, deleting all .project, .classpath files and .settings folders, and re-importing. I don't know why it didn't work the first time.</p>