• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 321
  • 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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: SQL Server Core 2016

This course will introduce you to SQL Server Core 2016, as well as teach you about SSMS, data tools, installation, server configuration, using Management Studio, and writing and executing queries.

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