Maven Command
Maven Command 1. Create the batch file with extension as ".bat" 2. Copy below contents into the file for build/clean install maven command echo Hello %USERNAME% echo Starting building component for your application set PATH="C:\apache-maven-3.6.0\bin";%PATH% cd C:\PROJECT_APP_PATH\ mvn clean install -P local echo DONE! timeout /t 15 Explain: Path variable will contain your exact location with bin directory of apache maven. -P {} -> Here based on your profile configuration like local, sit, uat, prod etc. build will automatically start