> For the complete documentation index, see [llms.txt](https://sugar-at.gitbook.io/blog-article/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://sugar-at.gitbook.io/blog-article/idea/p1.md).

# 1. 设置maven项目的默认配置

## 问题描述

很多刚使用idea的人,用其创建maven工程时会遇到一个问题,明明给项目设置了新的maven配置(使用阿里镜像源或者自定义maven版本),但是重新打开项目或创建新项目,以前的配置失效了,又恢复了idea默认的maven配置

## 解决方案

**依次点击**

file->Other settings-> Settings for new projects->build,execution,deployment -> build tools ->Maven

然后进行相关的配置即可,配置完成点击 apply 然后ok 即可永久生效

![maven设置图片](http://img.cdn.sugarat.top/mavenp1-2019106.png)
