一、错误信息:
-Dmaven.multiModuleProjectDirectory system property is not set. Check $M2_HOME environment variable and mvn script match.[ERROR] Maven execution terminated abnormally (exit code 1)
二、解决方法:
1、设置VM Options: -Dmaven.multiModuleProjectDirectory=$M2_HOME
2、创建项目时新增properties(这一步很重要)
archetypeCatalog internal
3、模板创建成功
三、参考网站:
- http://stackoverflow.com/questions/29137172/maven3-3-1-config-error-in-intellij-idea-14
- http://www.cnblogs.com/jifeng/p/4658765.html
时间: 2024-10-12 07:47:01