myeclipse 2015
myeclipse 2015 在编译(Run As-Maven install)maven项目出现如上错误,需要添加-Dmaven.multiModuleProjectDirectory=$M2_HOME,具体如下步骤
设定系统环境变量
1.0 Windows-preference-Server-Runtime Environment选择jre
2.0 选中jdk点击edit,在Variables中添加
其中$M2_HOME与环境变量名一致
3.0 重新编译项目Run As-Maven install,编译成功
参考:https://yq.aliyun.com/articles/70635
IDEA
IDEA 运行maven命令时报错: -Dmaven.multiModuleProjectDirectory system propery is not set
在file-setting里面,找到maven的设置:
先加入一个环境变量
然后配置一个JVM的参数: -Dmaven.multiModuleProjectDirectory=$M2_HOME
参考:https://www.cnblogs.com/onmyway20xx/p/4692709.html