Steps:
(1) Run mvn with the -e
and -X
options to get more debug information.
(2) Look for “Error” in the output. In my case, when I ran the mvn command, part of the output included:
[ERROR] Command wascmd.exe /X /C "C:\dev\dev-tools\.....
(3) Execute the problematic command directly in the command shell.
In my case, executing
cmd.exe /X /C "C:\dev\dev-tools\....
from the command line resulted in an OutOfMemoryError.