Hi 

I am trying to run a java class in the pre integration test phase which
starts up a embedded server. Following the start up I want to run all the
integration tests. 

The maven build starts up the plugin and the server starts up correctly as
expected however because I think the server is started in the same JVM the
integration tests phase does not begin thus my tests are not run.  

So can anybody advise on how to either fork the JVM from within the exec
plugin using the java goal or how else to do this. I have looked at the
exec:exec command but cannot see how this would run a java main class as it
seems to be for exe files.

I dont really want to start the server up in my tests and would rather do it
in Maven. 

I also tried forkmode=once in the surefire test plugin for the integration
phase but this did not work.

Thanks
-- 
View this message in context: 
http://old.nabble.com/running-java-main-class-from-Maven-tp27260336p27260336.html
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]


Reply via email to