title: run main class of Maven project
body: <p>I've created a simple console Java application that is built with Maven. Is there a way that the main class (which doesn't require any arguments) can be run from the command-line using a maven command like:</p>
  
  <pre><code>mvn run-app com.example.MainClass
  </code></pre>