title: Maven project builds successfully in Eclipse, but shows compile errors in cmd prompt
body: <p>I have imported an existing Maven project into Eclipse IDE. I modified some of the code and built the project in Eclipse. There are no build errors.</p>
  
  <p>However, when I ran <code>mvn clean install</code> from the command prompt, it is showing a lot of compilation errors. Why is Eclipse not showing errors and whereas Maven shows compilation errors?</p>