使用阿里云的maven私服的setting.xml, 提高maven项目jar下载速度
2017-07-10 14:28
501 查看
下载:
http://files.cnblogs.com/files/007sx/settings.zip
然后替换自己原本maven的配置文件。
如下载失败,可内容替换:
注意:
这是阿里云的maven私服的setting.xml文件,MirroOf配置不是*号,是central,这样在项目pom中配置repository依然生效
http://files.cnblogs.com/files/007sx/settings.zip
然后替换自己原本maven的配置文件。
如下载失败,可内容替换:
<?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>~/.m2</localRepository> --> <pluginGroups> </pluginGroups> <proxies> </proxies> <servers> </servers> <!-- <mirrorOf>central</mirrorOf> 这里最好不要写成*号,否则你项目中的pom中配置repository不生效 --> <mirrors> <mirror> <id>nexus-aliyun</id> <mirrorOf>central</mirrorOf> <name>Nexus Aliyun</name> <url>http://maven.aliyun.com/nexus/content/groups/public/</url> </mirror> </mirrors> <profiles> <profile> <repositories> <repository> <id>nexus</id> <name>local private nexus</name> <url>http://maven.aliyun.com/nexus/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.aliyun.com/nexus/content/groups/public/</url> <releases> <enabled>true</enabled> </releases> <snapshots> <enabled>false</enabled> </snapshots> </pluginRepository> </pluginRepositories> </profile> </profiles> </settings>
注意:
这是阿里云的maven私服的setting.xml文件,MirroOf配置不是*号,是central,这样在项目pom中配置repository依然生效
相关文章推荐
- ###①Maven国内私服快速下载—阿里云+②maven向仓库添加依赖jar包 技巧:Maven中的settings.xml设置远程镜像库
- maven,阿里云国内镜像,提高jar包下载速度
- [置顶] Maven项目中使用自己下载的jar包,Maven私服里添加自己下载的jar包。
- maven,阿里云国内镜像,提高jar包下载速度
- maven(八),阿里云国内镜像,提高jar包下载速度
- maven之阿里云国内镜像,提高jar包下载速度
- Maven项目中使用自己下载的jar包,Maven私服里添加自己下载的jar包。
- 在Maven项目中,指定使用阿里云仓库下载jar包
- 使用maven构建项目时,下载jar包速度奇慢,甚至失败
- 使用maven编译项目,下载相关的jar包,包括源码包和doc包
- MyEclipse 配置maven项目pom.xml设置 上传项目到nexus私服,通过中转仓库下载插件,以及nexus的配置
- 使用maven下载jar包,使用ant打包。yqxt项目的安装。
- 使用maven下载jar包,使用ant打包。yqxt项目的安装。
- 快速提高Maven下载jar速度
- maven项目中自动下载jar包的pom.xml配置
- Maven下载项目依赖jar包和使用方法
- 【Java】SVN下载maven项目到eclipse之后,项目红叉,pom.xml出现Missing artifact fakepath:dubbo:jar:2.8.5等缺少jar包情况
- 提高 Maven 下载Jar包的速度
- 使用assembly将maven项目pom.xml中的jar包打包
- 阿里的maven镜像仓库,eclipse中使用maven下载jar包的时候提升速度