idea 新建项目时出现 -Dmaven.multiModuleProjectDirectory system property is not set. Check $M2_HOME environment variable and mvn script match.
需在idea中配置 -Dmaven.multiModuleProjectDirectory=$M2_HOME
idea 新建项目时一直卡死在 Generating project in Interactive mode 这一步
需在idea中配置 -DarchetypeCatalog=internal
详细步骤如下
File -> other settings -> default settings -> build, execution, deployment -> build tools -> maven -> runner 中的 VM Option 配置 -Dmaven.multiModuleProjectDirectory=$M2_HOME -DarchetypeCatalog=internal
附图