[Solved] Java program to build and run a maven project [closed]
You can follow below approach to start: Create a batch/shell file to build your project using mvn/ant/gradle command. You would need Maven/Ant/Gradle installed in your system and environment variable needs to be setup properly. Run This batch/shell file using java by taking advantage of Runtime Class. Runtime.getRuntime().exec(“cmd /c start build.bat”); To schedule your java program, … Read more