标签:use span 精简配置 name odi oca yun plugin 本地仓库
最精简配置如下:
<?xml version="1.0" encoding="UTF-8"?> <settings> <localRepository>C:\Users\xxxx\.m2\repository</localRepository><!--需要改成自己的maven的本地仓库地址--> <mirrors> <mirror> <id>alimaven</id> <name>aliyun maven</name> <url>http://maven.aliyun.com/nexus/content/groups/public/</url> <mirrorOf>central</mirrorOf> </mirror> </mirrors> <profiles> <profile> <id>nexus</id> <repositories> <repository> <id>nexus</id> <name>local private nexus</name> <url>http://maven.oschina.net/content/groups/public/</url> <releases> <enabled>true</enabled> </releases> <snapshots> <enabled>false</enabled> </snapshots> </repository> </repositories> <pluginRepositories> <pluginRepository> <id>nexus</id> <name>local private nexus</name> <url>http://maven.oschina.net/content/groups/public/</url> <releases> <enabled>true</enabled> </releases> <snapshots> <enabled>false</enabled> </snapshots> </pluginRepository> </pluginRepositories> </profile></profiles> </settings>
替换 maven 的 .m2\settings.xml 文件的下载源为阿里云
标签:use span 精简配置 name odi oca yun plugin 本地仓库
原文地址:https://www.cnblogs.com/hupo-wey/p/12111917.html