IntelliJ Maven System Property

Dear IntelliJ community,

When I tried to compile a Maven module I stumbled on an error. The module wouldn't compile and would show the following error:

"D:\Windows\Program  Files\Java\jdk1.8.0_40\bin\java" "-Dmaven.home=D:\Windows\Program  Files\Maven" "-Dclassworlds.conf=D:\Windows\Program  Files\Maven\bin\m2.conf" -Didea.launcher.port=7535  "-Didea.launcher.bin.path=D:\Windows\Program Files\IntelliJ\bin"  -Dfile.encoding=UTF-8 -classpath "D:\Windows\Program  Files\Maven\boot\plexus-classworlds-2.5.2.jar;D:\Windows\Program  Files\IntelliJ\lib\idea_rt.jar"  com.intellij.rt.execution.application.AppMain  org.codehaus.classworlds.Launcher -Didea.version=14.0.3 clean package  install
-Dmaven.multiModuleProjectDirectory system propery is not set. Check $M2_HOME environment variable and mvn script match.
Process finished with exit code 1

When  I try to compile the module with the Windows CMD and the "mvn clean  package install" command it works. But when I try to compile the Maven  module with IntelliJ it wouldn't work.

With regards,
Julian v.d Berkmortel

1 comment
Comment actions Permalink

Please check https://youtrack.jetbrains.com/issue/IDEA-137783 for the workaround. The issue will be fixed in the next update (14.1).

0

Please sign in to leave a comment.