I have a simple java main class and can execute it using the below command on server java com.....MainClass
Now we are trying to use Maven in our application.
I am seeing on web that the maven command to execute java program is mvn exec:java -Dexec.mainClass=com......MainClass
Can I still use regular java command or do I have to use the maven command exec:java?
It's not clear to me when to use the maven exec:java command.
Please help me understand when to use regular java command and when to use the maven exec:java command. when I use Maven can I still execute program using regular java command.