方法1:
直接把默认C盘下的目录,替换为,或者添加阿里的settings.xml文件
方法2:
在IDEA右上角
File -> Settings -> Build,Execution,Deployment -> Build Tools -> Maven
我们可以看到自己的Maven配置信息
如果不是自己配置的Maven,这样改 修改C:\Users\lx\AppData\Roaming\JetBrains\IntelliJIdea2020.1\options\project.default.xml文件,添加下面这段内容
1 2 3 4 5 6 7 8 9 |
< component name = "MavenImportPreferences" >
< option name = "generalSettings" >
< MavenGeneralSettings >
< option name = "localRepository" value = "D:\Javaweb\apache-maven-3.6.3-bin\apache-maven-3.6.3\repository" />
< option name = "mavenHome" value = "D:\Javaweb\apache-maven-3.6.3-bin\apache-maven-3.6.3" />
< option name = "userSettingsFile" value = "D:\Javaweb\apache-maven-3.6.3-bin\apache-maven-3.6.3\conf\settings.xml" />
</ MavenGeneralSettings >
</ option >
</ component >
|