Using m2eclipse, what is the simplest way to use the Codehaus Mojo Exec Plugin to launch my project without leaving eclipse? So far on the pom plugins screen I have set up the org.codehuas.mojo plugin.
Specifically, I would like to execute the following from inside eclipse:
mvn exec:java -Dexec.mainClass=org.sonatype.mavenbook.weather.Main
This is how it looks on my set-up:
PD: if you have set the mainClass argument on the pom.xml, then the parameter from the execution will be disregarded.