title: Difference between Eclipse Build Project and Maven Compile command
body: <p>Is <em>Eclipse</em> "<strong>Build Project</strong>" command same as the <em>Maven</em> command "<strong>mvn compile</strong>"? Do both basically do the same thing?</p>
  
  <p>If <strong>Yes</strong>, then why do I need to do a "Build Project" in STS after running "mvn clean install" in order to run the application without any issues? Running "mvn clean install" should have already compiled the project. Shouldn't Refreshing the project in STS be enough to run it?</p>
  
  <p>If <strong>No</strong>, then is Eclipse build different because the Java compiler implements the Java Language Specification to build the classes? But the following <a href="http://maven.apache.org/plugins/maven-compiler-plugin/" rel="noreferrer">Apache Maven link</a> says that the default compiler is javax.tools.JavaCompiler (By the way I am using Java 1.6).</p>