如何配置mvn镜像源为华为云
# 查找mvn 配置文件
mvn -X help:effective-settings | grep settings.xml# 配置mvn镜像源为华为云,/home/apache-maven-3.9.5/conf/settings.xml文件路径需要根据上一步中查询结果调整
cat > /home/apache-maven-3.9.5/conf/settings.xml <<EOF
<settings><!-- 其他配置 --><mirrors><mirror><id>huaweicloud</id><mirrorOf>*</mirrorOf><url>https://repo.huaweicloud.com/repository/maven/</url></mirror></mirrors>
</settings>
EOF