Class Not Found exception with exec-maven-plugin when run on Linux

I ran –

mvn clean install.

Post which when I run –

mvn -X clean exec:java -Dexec.mainClass="com.shn.library.RunSuitesInParallel" -Dexec.classpathScope=test -e

The compiled classes get deleted & the error is apparent.

So the solution is –

mvn -X clean install exec:java -Dexec.mainClass="com.shn.library.RunSuitesInParallel" -Dexec.classpathScope=test -e

Leave a Comment