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

Comments

Popular posts from this blog

PUTTY - The server's host key is not cached in the registry cache

OIM-12c Installation - FMW - SOA - IDM

SAML & OAuth 2.0