In a Windows bat file:
mvn.bat install
java -jar build.jar
pause
The command line window exist after executing mvn.bat install, how to let it proceed with execution of remain commands?
I think your problem is that when you invoke mvn command you never go back to your script again.
Try using the call command e.g.:
call mvn install
This will invoke mvn install command and then return back to your script.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With