maven settings

私有服settigs

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
  3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4. xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
  5. <localRepository>E:\mozq\apache-maven-3.6.1\repo</localRepository>
  6. <pluginGroups>
  7. <!-- pluginGroup
  8. | Specifies a further group identifier to use for plugin lookup.
  9. <pluginGroup>com.your.plugins</pluginGroup>
  10. -->
  11. </pluginGroups>
  12. <!-- proxies
  13. | This is a list of proxies which can be used on this machine to connect to the network.
  14. | Unless otherwise specified (by system property or command-line switch), the first proxy
  15. | specification in this list marked as active will be used.
  16. |-->
  17. <proxies>
  18. <!-- proxy
  19. | Specification for one proxy, to be used in connecting to the network.
  20. |
  21. <proxy>
  22. <id>optional</id>
  23. <active>true</active>
  24. <protocol>http</protocol>
  25. <username>proxyuser</username>
  26. <password>proxypass</password>
  27. <host>proxy.host.net</host>
  28. <port>80</port>
  29. <nonProxyHosts>local.net|some.host.com</nonProxyHosts>
  30. </proxy>
  31. -->
  32. </proxies>
  33. <!-- servers
  34. | This is a list of authentication profiles, keyed by the server-id used within the system.
  35. | Authentication profiles can be used whenever maven must make a connection to a remote server.
  36. |-->
  37. <servers>
  38. <server>
  39. <id>nexus</id>
  40. <username>admin</username>
  41. <password>admin123</password>
  42. </server>
  43. </servers>
  44. <!-- mirrors
  45. | This is a list of mirrors to be used in downloading artifacts from remote repositories.
  46. |
  47. | It works like this: a POM may declare a repository to use in resolving certain artifacts.
  48. | However, this repository may have problems with heavy traffic at times, so people have mirrored
  49. | it to several places.
  50. |
  51. | That repository definition will have a unique id, so we can create a mirror reference for that
  52. | repository, to be used as an alternate download site. The mirror site will be the preferred
  53. | server for that repository.
  54. |-->
  55. <mirrors>
  56. <mirror>
  57. <!--This sends everything else to /public -->
  58. <id>nexus</id>
  59. <mirrorOf>*</mirrorOf>
  60. <url>http://192.168.1.124:8081/repository/maven-public/</url>
  61. </mirror>
  62. </mirrors>
  63. <profiles>
  64. <profile>
  65. <id>nexus</id>
  66. <repositories>
  67. <repository>
  68. <id>nexus</id>
  69. <name>Nexus</name>
  70. <url>http://192.168.1.124:8081/nexus/content/groups/public/</url>
  71. <releases>
  72. <enabled>true</enabled>
  73. </releases>
  74. <snapshots>
  75. <enabled>true</enabled>
  76. </snapshots>
  77. </repository>
  78. </repositories>
  79. </profile>
  80. </profiles>
  81. <!-- activeProfiles
  82. | List of profiles that are active for all builds.
  83. |
  84. <activeProfiles>
  85. <activeProfile>alwaysActiveProfile</activeProfile>
  86. <activeProfile>anotherAlwaysActiveProfile</activeProfile>
  87. </activeProfiles>
  88. -->
  89. <activeProfiles>
  90. <activeProfile>nexus</activeProfile>
  91. </activeProfiles>
  92. </settings>
  1. <mirrors>
  2. <!-- mirror
  3. | Specifies a repository mirror site to use instead of a given repository. The repository that
  4. | this mirror serves has an ID that matches the mirrorOf element of this mirror. IDs are used
  5. | for inheritance and direct lookup purposes, and must be unique across the set of mirrors.
  6. |
  7. <mirror>
  8. <id>mirrorId</id>
  9. <mirrorOf>repositoryId</mirrorOf>
  10. <name>Human Readable Name for this Mirror.</name>
  11. <url>http://my.repository.com/repo/path</url>
  12. </mirror>
  13. -->
  14. <mirror>
  15. <id>nexus</id>
  16. <name>internal nexus repository</name>
  17. <!-- <url>http://192.168.1.100:8081/nexus/content/groups/public/</url>-->
  18. <url>http://repo.maven.apache.org/maven2</url>
  19. <mirrorOf>central</mirrorOf>
  20. </mirror>
  21. <mirror>
  22. <id>alimaven</id>
  23. <name>aliyun maven</name>
  24. <url>http://maven.aliyun.com/nexus/content/groups/public/</url>
  25. <mirrorOf>central</mirrorOf>
  26. </mirror>
  27. <mirror>
  28. <id>uk</id>
  29. <mirrorOf>central</mirrorOf>
  30. <name>Human Readable Name for this Mirror.</name>
  31. <url>http://uk.maven.org/maven2/</url>
  32. </mirror>
  33. <mirror>
  34. <id>CN</id>
  35. <name>OSChina Central</name>
  36. <url>http://maven.oschina.net/content/groups/public/</url>
  37. <mirrorOf>central</mirrorOf>
  38. </mirror>
  39. </mirrors>

maven settings的更多相关文章

  1. maven settings 配置文件

    maven settings 配置文件 <?xml version="1.0" encoding="UTF-8"?> <settings xm ...

  2. Maven settings.xml配置(指定本地仓库、阿里云镜像设置)

    转: 详解Maven settings.xml配置(指定本地仓库.阿里云镜像设置) 更新时间:2018年12月18日 11:14:45   作者:AmaniZ   我要评论   一.settings. ...

  3. 基于nexus私服配置项目pom.xml和maven settings.xml文件

    备注:搭建nexus私服请参考上一篇文章基于Docker搭建Maven私服Nexus,Nexus详解 一:将jar发送到nexus私服务器 1.pom.xml文件添加配置 pom.xml文件中的这个版 ...

  4. maven settings.xml 阿里云

    <?xml version="1.0" encoding="UTF-8"?> <!--Licensed to the Apache Softw ...

  5. 学习笔记——Maven settings.xml 配置详解

    文件存放位置 全局配置: ${M2_HOME}/conf/settings.xml 用户配置: ${user.home}/.m2/settings.xml note:用户配置优先于全局配置.${use ...

  6. [maven] settings 文件节点配置详解

    基本结构 <settings xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3. ...

  7. Maven settings.xml配置解读

    本文对${maven.home}\conf\settings.xml的官方文档作个简单的解读,请确保自己的maven环境安装成功,具体安装流程详见Maven安装 第一步:看settings.xml的内 ...

  8. Maven settings.xml

    <?xml version="1.0" encoding="UTF-8"?> <settings xmlns="http://mav ...

  9. maven settings.xml--需要保存到用户/.m2文件夹下

    <?xml version="1.0" encoding="UTF-8"?> <!-- Licensed to the Apache Soft ...

随机推荐

  1. 洛谷 P1840 【Color the Axis_NOI导刊2011提高(05)】 题解

    看了一下题解,显然在做无用功啊,而且麻烦了许多,但是这道题真心不难,显然是一个区间修改的题目,然后查询的题目 我的线段树只需要记录一个量:区间和 看了一下其他题解的pushdown函数,发现真心写的很 ...

  2. 【Java语言特性学习之三】Java4种对象引用

    为了更灵活的控制对象的生命周期,在JDK1.2之后,引用被划分为(引用的级别和强度由高到低)强引用.软引用.弱引用.虚引用四种类型,每种类型有不同的生命周期,它们不同的地方就在于垃圾回收器对待它们会使 ...

  3. Windows环境Tomcat开启APR并配置http/2.0访问

    1.http/2.0需要开启https 参考:https://www.cnblogs.com/zhi-leaf/p/11978615.html 2.下载tcnative-1.dll文件 官网下载地址: ...

  4. ‘Maximum call stack size exceeded’错误的解决方法

    今天打开vue项目,页面空白报了一个错误,错误如下: “Maximum call stack size exceeded” 错误的字面意思是:超出最大调用堆栈大小. 然后就是各种百度,找错误原因.百度 ...

  5. V2Ray+WebSocket+TLS+Nginx 配置及使用

    v2ray 是一个模块化的代理工具,支持 VMess,Socks,HTTP,Shadowsocks 等等协议,并且附带很多高级功能,HTTP,TLS 等等. 关键词限制,全文 v2ray 中的 y 为 ...

  6. Spring源码系列 — 构造和初始化上下文

    探索spring源码实现,精华的设计模式,各种jdk提供的陌生api,还有那么点黑科技都是一直以来想做的一件事!但是读源码是一件非常痛苦的事情,需要有很大的耐心和扎实的基础. 在曾经读两次失败的基础上 ...

  7. 【Easyexcel】java导入导出超大数据量的xlsx文件 解决方法

    解决方法: 使用easyexcel解决超大数据量的导入导出xlsx文件 easyexcel最大支持行数 1048576. 官网地址: https://alibaba-easyexcel.github. ...

  8. 【机器学习笔记】Python机器学习基本语法

    本来算法没有那么复杂,但如果因为语法而攻不下就很耽误时间.于是就整理一下,搞python机器学习上都需要些什么基本语法,够用就行,可能会持续更新. Python四大类型 元组tuple,目前还没有感受 ...

  9. 解决maven项目中web.xml is missing and <failOnMissingWebXml> is set to true

    web.xml is missing and <failOnMissingWebXml> is set to true 是因为项目中没有web.xml文件, 步骤如下:

  10. 【spring】自定义注解 custom annotation

    自定义注解 custom annotation 使用场景 类属性自动赋值. 验证对象属性完整性. 代替配置文件功能,像spring基于注解的配置. 可以生成文档,像java代码注释中的@see,@pa ...