每次我克隆一个 repo 时,我都必须在 File->Settings->Build, Execution, Deployment->Build Tools-> Maven-> Maven home directory
下手动设置 maven 主目录。这很烦人。我搜索了 jetbrains 论坛,只有一个选项可以为 FUTURE 项目配置 IDE,这在某些情况下永远不会成为事实。将 repo 克隆到 idea 项目并不是创建新项目,因此不会触发全局设置。我怎样才能做到这一点?顺便说一句,它不仅适用于 Maven 主目录,还适用于代码样式设置和许多其他设置 - 参见 here
最佳答案
IntelliJ IDEA 没有将任何设置传播到所有现有项目的功能。一个请求 is welcome .
关于maven - Intellij IDEA 2019.2 : Set the maven home directory "globally" for all projects,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57658822/