Loading... ### Maven配置概要 Maven配置文件settings.xml默认在$USER_HOME/.m2文件夹中,一般直接修改默认配置文件最方便,IDEA和eclipse等IDE会自动应用默认配置文件,一劳永逸。 ```xml <?xml version="1.0" encoding="UTF-8"?> <settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd"> <localRepository>/path/to/local/repo</localRepository> <pluginGroups> </pluginGroups> <proxies> </proxies> <servers> </servers> <mirrors> <mirror> <id>aliyunmaven</id> <mirrorOf>*</mirrorOf> <name>阿里云公共仓库</name> <url>https://maven.aliyun.com/repository/public</url> </mirror> <mirror> <id>huaweicloud</id> <mirrorOf>*</mirrorOf> <name>HuaweiCloud Maven Mirror</name> <url>https://repo.huaweicloud.com/repository/maven/</url> </mirror> <mirror> <id>nexus-tencentyun</id> <mirrorOf>*</mirrorOf> <name>Nexus tencentyun</name> <url>http://mirrors.cloud.tencent.com/nexus/repository/maven-public/</url> </mirror> <mirror> <id>nexus-163</id> <mirrorOf>*</mirrorOf> <name>Nexus 163</name> <url>http://mirrors.163.com/maven/repository/maven-public/</url> </mirror> </mirrors> <profiles> </profiles> </settings> ``` 最后修改:2024 年 07 月 07 日 © 允许规范转载 赞 如果觉得我的文章对你有用,请随意赞赏