Hello,
How can I execute java program during the build, or after the build has just finished, is it possible to do this directly from pom:
mvn exec:java -Dexec.mainClass=org.sonatype.mavenbook.weather.Main
EDIT
Lets say I wanna execute org.eclipse.content.MyClass how would I needed to write code?
This builds the project but it doesnt execute my class :
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.1</version>
<executions>
<execution>
<phase>deploy</phase>
<goals>
<goal>java</goal>
</goals>
</execution>
</executions>
<configuration>
<mainClass>org.eclipse.content.MyClass</mainClass>
</configuration>
</plugin>