How to access command line arguments that is passed as follows?
mvn exec:java -Dexec.mainClass=com.test.App -Dexec.args="-Duserid=10023”
I've tried to receive them by
System.out.println(System.getProperty("userid"));
but it returns null
.
How to access command line arguments that is passed as follows?
mvn exec:java -Dexec.mainClass=com.test.App -Dexec.args="-Duserid=10023”
I've tried to receive them by
System.out.println(System.getProperty("userid"));
but it returns null
.