How can I pass the classunloading parameter to mvn?
mvn -XX:+CMSClassUnloadingEnabled exec:java -Dexec.mainClass=”Test”
Whats the correct format to get this to work?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The
exec:javagoal executes the main class in the current JVM. That means you need to run Maven itself with the JVM arguments you need. A good way to pass JVM arguments to Maven is via theMAVEN_OPTSenvironment variable: