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:

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

See also: