Maven Goals

Trying to understand maven can be tricky (esp. if you are coming from a VS background)

For me, the trick was to uderstand the whole deal with plugins and goals


  • To keep things simple, one can just do:
<br />mvn exec:java -Dexec.mainClass="SimpleProducer" -Dexec.args="test"

  • Alternatively, we can use the exec-maven-plugin to add the config in the POM file, then  run the java goal  like so :  mvn exec:java
<br /><build>