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>




Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s