在Intellij IDEA中配置Maven

File -- Other Settings -- Settings for New Projects.. -- Build, Execution, Deployment -- Build Tools -- Maven

注意是给以后的新建工程设置Maven配置信息,否则只对当前工程有效

如下图所示:

  • Maven home directory :D:\apache-maven-3.5.4(Maven的主目录 )

  • User settings file : D:\apache-maven-3.5.4\conf\settings.xml(Maven配置文件)

在Intellij IDEA中配置Maven