MeenuNagpal
asked on
Need to write a batch file to build project using maven
I am building and Deploying a multi module project. I need to write a batch file to build and deploy the project.
I am trying something like followng in my bat file:
cd "C:\Projects\java\com.rads dk.protoco ls"
mvn install
cd "C:\Projects\java\com.rads dk.framewo rk"
mvn install
But I am not able to execute this. It installs one module but do nothing for the another module. I am new to Maven. Is there any better way to bulid and deploy application using maven?
I am trying something like followng in my bat file:
cd "C:\Projects\java\com.rads
mvn install
cd "C:\Projects\java\com.rads
mvn install
But I am not able to execute this. It installs one module but do nothing for the another module. I am new to Maven. Is there any better way to bulid and deploy application using maven?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
This worked perfectly fine for me
Thanks
Thanks
:)
Also try the following by adding it in your batch file.
pushd "C:\Projects\java\com.rads
mvn install
popd
pushd "C:\Projects\java\com.rads
mvn install
popd