Hey there,
just set up a simple project to test the functionality of the maven exec plugin. I have one class containing one "Hello World" main method. I've tested two configurations of the exec plugin.
<goals>
<goal>exec</goal>
</goals>
<configuration>
<executable>java</executable>
<arguments>
<argument>-classpath</argument>
<classpath/>
<argument>test.exec.HelloWorldExec</argument>
</arguments>
</configuration>
failed miserably, giving me a ClassNotFoundException, while
<goals><goal>java</goal></goals>
<configuration>
<mainClass>test.exec.HelloWorldExec</mainClass>
</configuration>
worked. However I would like to be able to start my java main class in a separate process, so I'd like to understand whats different with exec:exec and how I can get it to work?
Any help appreciated
cheers
Whizz