IDEA 运行maven命令时报错: -Dmaven.multiModuleProjectDirectory system propery is not set

Posted 久曲健

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了IDEA 运行maven命令时报错: -Dmaven.multiModuleProjectDirectory system propery is not set相关的知识,希望对你有一定的参考价值。

在file-setting里面,找到maven的设置:

   

先加入一个环境变量

   

然后配置一个JVM的参数: -Dmaven.multiModuleProjectDirectory=$M2_HOME

  

OK ,问题解决!

原文链接:https://www.cnblogs.com/onmyway20xx/p/4692709.html

以上是关于IDEA 运行maven命令时报错: -Dmaven.multiModuleProjectDirectory system propery is not set的主要内容,如果未能解决你的问题,请参考以下文章

使用maven创建一个插件项目时报错,报错信息如下

IDEA reimport时报错Unable to import maven project: See logs for details

运行IDEA时报错``Internal error``

运行IDEA时报错``Internal error``

Spring5IDEA运行测试类时报错:找不到或无法加载主类

intellij idea运行Android程序时报错;Unable to locate adb within SDK