I have found a few related questions on this, but they\'re all related to Intellij or on Mac OS. I\'m on Windows 8.1 and using Eclipse:
Eclipse Java EE IDE f
I managed to work out a solution for this.
1) I had to to to run configurations and add an argument to the VM. (Run - Run Configurations - JRE Tab - VM arguments). Enter the following in the text box
-Dmaven.multiModuleProjectDirectory=%M2_HOME%
You need to use %M2_HOME% or something similar to represent the path to Maven, because when I added my path to that argument directly, it was unable to find it. I think it's because there is a length limit on the argument. My path was
C:\Program Files\Apache Software Foundation\apache-maven-3.3.1
and I got an error stating that it couldn't find the runtime at Program Files\Apache
2) Set up a system environment variable of called M2_HOME with C:\Program Files\Apache Software Foundation\apache-maven-3.3.1
Control Panel - System and Security - System - Advanced System Settings - Environment Variables - System Variables - New