Link to home
Start Free TrialLog in
Avatar of MeenuNagpal
MeenuNagpalFlag for United States of America

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.radsdk.protocols"
mvn install
cd "C:\Projects\java\com.radsdk.framework"
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
Avatar of CEHJ
CEHJ
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
MeenuNagpal,

Also try the following by adding it in your batch file.

pushd "C:\Projects\java\com.radsdk.protocols"
mvn install
popd
pushd "C:\Projects\java\com.radsdk.framework"
mvn install
popd
Avatar of MeenuNagpal

ASKER

This worked perfectly fine for me
Thanks
:)