I made a bat file like:
mvn clean; mvn package;
but it doesn’t work, only the first command is executed.
can someone help me?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Use
Note that you don’t need semicolons in batch files. And the reason why you need to use
callis thatmvnitself is a batch file and batch files need to call each other withcall, otherwise control does not return to the caller.If you want subsequent commands to echo to the command line (show in batch output), you must also do
echo onafter thecall mvnis done (on the next line). This is becausemvnturns echo off and doesn’t turn it back on.