目的

记录Maven国内镜像

国内镜像

阿里

    <!-- 阿里镜像 --><mirror><id>nexus-aliyun</id><name>Nexus aliyun</name><url>http://maven.aliyun.com/nexus/content/groups/public/</url><mirrorOf>central</mirrorOf></mirror>

ibiblio镜像

    <!-- ibiblio镜像 --><mirror><id>ibiblio</id><name>Mirror from Maven ibiblio</name><url>http://mirrors.ibiblio.org/pub/mirrors/maven2/</url><mirrorOf>central</mirrorOf></mirror>

开源中国

    <!-- 开源中国镜像 --><mirror><id>CN</id><name>OSChina Central</name><url>http://maven.oschina.net/content/groups/public/</url><mirrorOf>central</mirrorOf></mirror>

示例

<?xml version="1.0" encoding="UTF-8"?><!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements.  See the NOTICE file
distributed with this work for additional information
regarding copyright ownership.  The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License.  You may obtain a copy of the License athttp://www.apache.org/licenses/LICENSE-2.0Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied.  See the License for the
specific language governing permissions and limitations
under the License.
--><!--| This is the configuration file for Maven. It can be specified at two levels:||  1. User Level. This settings.xml file provides configuration for a single user,|                 and is normally provided in ${user.home}/.m2/settings.xml.||                 NOTE: This location can be overridden with the CLI option:||                 -s /path/to/user/settings.xml||  2. Global Level. This settings.xml file provides configuration for all Maven|                 users on a machine (assuming they're all using the same Maven|                 installation). It's normally provided in|                 ${maven.conf}/settings.xml.||                 NOTE: This location can be overridden with the CLI option:||                 -gs /path/to/global/settings.xml|| The sections in this sample file are intended to give you a running start at| getting the most out of your Maven installation. Where appropriate, the default| values (values used when the setting is not specified) are provided.||-->
<settings xmlns="http://maven.apache.org/SETTINGS/1.2.0"xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.2.0 http://maven.apache.org/xsd/settings-1.2.0.xsd"><!-- localRepository| The path to the local repository maven will use to store artifacts.|| Default: ${user.home}/.m2/repository<localRepository>/path/to/local/repo</localRepository>--><!-- interactiveMode| This will determine whether maven prompts you when it needs input. If set to false,| maven will use a sensible default value, perhaps based on some other setting, for| the parameter in question.|| Default: true<interactiveMode>true</interactiveMode>--><!-- offline| Determines whether maven should attempt to connect to the network when executing a build.| This will have an effect on artifact downloads, artifact deployment, and others.|| Default: false<offline>false</offline>--><!-- pluginGroups| This is a list of additional group identifiers that will be searched when resolving plugins by their prefix, i.e.| when invoking a command line like "mvn prefix:goal". Maven will automatically add the group identifiers| "org.apache.maven.plugins" and "org.codehaus.mojo" if these are not already contained in the list.|--><pluginGroups><!-- pluginGroup| Specifies a further group identifier to use for plugin lookup.<pluginGroup>com.your.plugins</pluginGroup>--></pluginGroups><!-- proxies| This is a list of proxies which can be used on this machine to connect to the network.| Unless otherwise specified (by system property or command-line switch), the first proxy| specification in this list marked as active will be used.|--><proxies><!-- proxy| Specification for one proxy, to be used in connecting to the network.|<proxy><id>optional</id><active>true</active><protocol>http</protocol><username>proxyuser</username><password>proxypass</password><host>proxy.host.net</host><port>80</port><nonProxyHosts>local.net|some.host.com</nonProxyHosts></proxy>--></proxies><!-- servers| This is a list of authentication profiles, keyed by the server-id used within the system.| Authentication profiles can be used whenever maven must make a connection to a remote server.|--><servers><!-- server| Specifies the authentication information to use when connecting to a particular server, identified by| a unique name within the system (referred to by the 'id' attribute below).|| NOTE: You should either specify username/password OR privateKey/passphrase, since these pairings are|       used together.|<server><id>deploymentRepo</id><username>repouser</username><password>repopwd</password></server>--><!-- Another sample, using keys to authenticate.<server><id>siteServer</id><privateKey>/path/to/private/key</privateKey><passphrase>optional; leave empty if not used.</passphrase></server>--></servers><!-- mirrors| This is a list of mirrors to be used in downloading artifacts from remote repositories.|| It works like this: a POM may declare a repository to use in resolving certain artifacts.| However, this repository may have problems with heavy traffic at times, so people have mirrored| it to several places.|| That repository definition will have a unique id, so we can create a mirror reference for that| repository, to be used as an alternate download site. The mirror site will be the preferred| server for that repository.|--><mirrors><!-- mirror| Specifies a repository mirror site to use instead of a given repository. The repository that| this mirror serves has an ID that matches the mirrorOf element of this mirror. IDs are used| for inheritance and direct lookup purposes, and must be unique across the set of mirrors.|<mirror><id>mirrorId</id><mirrorOf>repositoryId</mirrorOf><name>Human Readable Name for this Mirror.</name><url>http://my.repository.com/repo/path</url></mirror>--><!-- 阿里镜像 --><mirror><id>nexus-aliyun</id><name>Nexus aliyun</name><url>http://maven.aliyun.com/nexus/content/groups/public/</url><mirrorOf>central</mirrorOf></mirror><!-- ibiblio镜像 --><mirror><id>ibiblio</id><name>Mirror from Maven ibiblio</name><url>http://mirrors.ibiblio.org/pub/mirrors/maven2/</url><mirrorOf>central</mirrorOf></mirror><mirror><!-- 开源中国镜像 --><id>CN</id><name>OSChina Central</name><url>http://maven.oschina.net/content/groups/public/</url><mirrorOf>central</mirrorOf></mirror></mirrors><!-- profiles| This is a list of profiles which can be activated in a variety of ways, and which can modify| the build process. Profiles provided in the settings.xml are intended to provide local machine-| specific paths and repository locations which allow the build to work in the local environment.|| For example, if you have an integration testing plugin - like cactus - that needs to know where| your Tomcat instance is installed, you can provide a variable here such that the variable is| dereferenced during the build process to configure the cactus plugin.|| As noted above, profiles can be activated in a variety of ways. One way - the activeProfiles| section of this document (settings.xml) - will be discussed later. Another way essentially| relies on the detection of a system property, either matching a particular value for the property,| or merely testing its existence. Profiles can also be activated by JDK version prefix, where a| value of '1.4' might activate a profile when the build is executed on a JDK version of '1.4.2_07'.| Finally, the list of active profiles can be specified directly from the command line.|| NOTE: For profiles defined in the settings.xml, you are restricted to specifying only artifact|       repositories, plugin repositories, and free-form properties to be used as configuration|       variables for plugins in the POM.||--><profiles><!-- profile| Specifies a set of introductions to the build process, to be activated using one or more of the| mechanisms described above. For inheritance purposes, and to activate profiles via <activatedProfiles/>| or the command line, profiles have to have an ID that is unique.|| An encouraged best practice for profile identification is to use a consistent naming convention| for profiles, such as 'env-dev', 'env-test', 'env-production', 'user-jdcasey', 'user-brett', etc.| This will make it more intuitive to understand what the set of introduced profiles is attempting| to accomplish, particularly when you only have a list of profile id's for debug.|| This profile example uses the JDK version to trigger activation, and provides a JDK-specific repo.<profile><id>jdk-1.4</id><activation><jdk>1.4</jdk></activation><repositories><repository><id>jdk14</id><name>Repository for JDK 1.4 builds</name><url>http://www.myhost.com/maven/jdk14</url><layout>default</layout><snapshotPolicy>always</snapshotPolicy></repository></repositories></profile>--><!--| Here is another profile, activated by the system property 'target-env' with a value of 'dev',| which provides a specific path to the Tomcat instance. To use this, your plugin configuration| might hypothetically look like:|| ...| <plugin>|   <groupId>org.myco.myplugins</groupId>|   <artifactId>myplugin</artifactId>||   <configuration>|     <tomcatLocation>${tomcatPath}</tomcatLocation>|   </configuration>| </plugin>| ...|| NOTE: If you just wanted to inject this configuration whenever someone set 'target-env' to|       anything, you could just leave off the <value/> inside the activation-property.|<profile><id>env-dev</id><activation><property><name>target-env</name><value>dev</value></property></activation><properties><tomcatPath>/path/to/tomcat/instance</tomcatPath></properties></profile>--></profiles><!-- activeProfiles| List of profiles that are active for all builds.|<activeProfiles><activeProfile>alwaysActiveProfile</activeProfile><activeProfile>anotherAlwaysActiveProfile</activeProfile></activeProfiles>-->
</settings>

maven 国内源配置相关推荐

  1. Maven国内源设置 - OSChina国内源失效了,别更新了

    Maven国内源设置 - OSChina国内源失效了,别更新了 原文:http://blog.csdn.net/chwshuang/article/details/52198932 最近在写一个Spr ...

  2. Maven国内源设置 -  OSChina国内源失效了,别更新了

    Maven国内源设置 - OSChina国内源失效了,别更新了 最近在写一个Spring4.x + SpringMVC+Mybatis零配置的文章,使用的源配的是公司的私有仓库,但是为了让其他人能够通 ...

  3. Debian 9 更换源 使用国内源 配置方法

    Debian 9 更换源 使用国内源 配置方法 使用中科大的源 ftp.cn.debian.org #中科大 nano /etc/apt/sources.listdeb http://ftp.cn.d ...

  4. m1 MBA配置Homebrew环境+国内源配置

    文章目录 写在前面 Homebrew本地编译版安装 Homebrew Rosetta2转译版安装 设置环境变量 换源 结语 主要参考 写在前面 最近入手一台8+256m1Mac Book air,想用 ...

  5. IDEA 配置Maven国内源

    首先打开设置,在设置中搜索maven,然后跳转到这个页面: 看到有一个User settings files这个项,/Users/xq/.m2/settings.xml这个便是配置文件,修改这个文件即 ...

  6. 开发加速使用maven国内源,感谢阿里技术团队,良心团队!

    2019独角兽企业重金招聘Python工程师标准>>> Maven阿里云中央仓库 maven作为一个项目管理工具确实非常好用,但是在国内这个网络条件下实在是让人恼火.之前oschin ...

  7. debian 更换源 使用国内源 配置方法

    配置前请先参考: https://wiki.debian.org/SourcesList https://www.debian.org/mirror/list https://mirrors.tuna ...

  8. Centos7配置yum国内源(BaseOS+epel+ELRepo+SCL+IUS+REMI)

    Centos7配置yum国内源 配置必要源 配置base源 下载阿里云的base源 下载163的base源 刷新源 查看源是否添加成功 安装epel源 替换epel.repo文件 刷新源 查看源是否添 ...

  9. maven配置国内源

    maven配置国内源 安装maven 配置镜像 找到安装目录,本文使用idea自带的maven演示,官网安装的同理 进入conf目录,编辑setting.xml文件 完整配置文件 安装maven 前往 ...

最新文章

  1. Windows Server 2012 文件服务器群集
  2. java中pi_Java-Pi的几种实现
  3. python去掉txt文件行尾换行
  4. LeetCode 1374. 生成每种字符都是奇数个的字符串
  5. Foundation框架集合 ---- NSArray和NSMutableArray
  6. easyui输入框模糊查询
  7. Julia : global、local 以及 作用域问题
  8. linux运行nodejs一般路径_Linux上安装Nodejs
  9. Oracle查询成绩高于成绩,oracle认证考试成绩如何查询?
  10. css3 浪花,掘金:Canvas 实现画中画动画效果--网易娱乐年度盘点H5动画解密
  11. allennlp使用
  12. linux crontab测试,crontab使用测试
  13. Boost.Asio使用总结
  14. ValueError: The name None occurs multiple times, use a level number
  15. python批量合并mp4视频
  16. top n with ties
  17. excel 常用技巧
  18. INF=0x3f3f3f3f是 什么意思?
  19. CS224n 深度自然语言处理(四) Note - Backpropagation and computation graphs
  20. MySQL——索引与EXPLAIN

热门文章

  1. 19.亿级流量电商详情页系统实战---总结
  2. CAD快速修改角度小技巧
  3. 未来趋势:区块链溯源技术
  4. PTA 6-1 快速排序 (10分)
  5. 个人对GDT、GDTR、LDT、LDTR的理解
  6. python非线性规划求解_Python之建模规划篇--非线性规划
  7. 删除共享文件凭据脚本
  8. 扬帆起航——第一篇博客
  9. 【MySQL】6、Delete From删除语句
  10. ARM体系结构与编程(更)