From SpectLog
Jump to: navigation, search


Change highlighted parameters to customize:

mvn exec:java -Dexec.mainClass="com.spectlog.dummy"


To pass an arguments:

mvn exec:java -Dexec.mainClass="com.spectlog.dummy" -Dexec.args="-X ID1 ID2 ID3"


If the main class is in test sources, add one more option:

mvn exec:java -Dexec.mainClass="com.spectlog.dummy" -Dexec.classpathScope="test"


NOTE: Make sure the project has already been built (mvn clean install).


If application starts daemon threads, to avoid IllegalThreadStateException exception, set property exec.cleanupDaemonThreads=false - see: http://stackoverflow.com/a/25166013/441652

mvn exec:java -Dexec.mainClass="com.spectlog.dummy" -Dexec.cleanupDaemonThreads=false


See also: