I am using maven in a project here at work and I’ve come up to a rather strange (at least for me) problem. When I do an: mvn package everything seems ok but the output of mvn disappears as soon as maven completes. To test it more I just did a: mvn –help and I could not see the output. As soon as the command finishes the prompt is cleared. I am doing my work now using redirections: mvn package > out and then: type out in order to see the output. Any help would be greatly appreciated!
Thanx!
Solved: To whoever finds this useful. At the end of mvn.bat there was the line
cmd /C exit /B %ERROR_CODE%
which I had to comment out like this:
@REM cmd /C exit /B %ERROR_CODE%
Check if the MAVEN_TERMINATE_CMD is set to on. If it is unset it:
Check that the mvn.bat script in maven’s bin directory doesn’t contain an exit command without the /b option. It should end with the following line:
If neither alternative solves your problem, set the MAVEN_BATCH_PAUSE variable to on:
before you run maven. This should cause mvn.bat to wait for a keystroke before exiting.