I want to run an instruction using bash with some arguments. Among these arguments I have
"-- stat". So when I run my instruction, the bash recognize the "--stat" as an option of Mavan and not an arguments.
Example of my instruction :
mvn exec:java -Dexec.mainClass="MainClass" -Dexec.args="args1 --stat args3 ..."
and when I run this command line I have this error :
Unable to parse command line options: Unrecognized option: --stat
What can I do to run this command line with "--stat" arguments ?
Please check whether this is useful.
Preserving argument spacing, etc when passing into mvn exec:java