[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 316
  • Last Modified:

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?
0
MeenuNagpal
Asked:
MeenuNagpal
  • 2
1 Solution
 
CEHJCommented:
Try

call mvn install

instead
0
 
Amitkumar PSr. ConsultantCommented:
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
0
 
MeenuNagpalAuthor Commented:
This worked perfectly fine for me
Thanks
0
 
CEHJCommented:
:)
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now