env: Windows 10, Java 11.0.10, Maven 3.8.1
There is a simple batch file run.bat
mvn clean package
echo After build
When executing call run.bat from command line I get the full output of maven build, but the line After build is never printed to console. The last line of the output is Process finished with exit code N (where N=0 if build is successful and N=1 otherwise).
One of the possibilities is using start to run maven in a separate process, but the problem is the sequential execution is needed:
mvn clean package
command X // depends on the previous command artifact
And I am not sure how to achieve that, assuming Maven calls exit internally.
Is there a way to execute mvn commands in sequence with other commands in the same script?