Answers for "How to run Maven from Java?"

2

run java program maven

mvn exec:java -Dexec.mainClass="com.vineetmanohar.module.Main" -Dexec.args="arg0 arg1 arg2"
Posted by: Guest on November-29-2019
0

How to run Maven from Java?

MavenCli cli = new MavenCli();
cli.doMain(new String[]{"clean", "install"}, "project_dir", System.out, System.out);
Posted by: Guest on July-27-2021

Browse Popular Code Answers by Language