settings.xml 3.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. Licensed to the Apache Software Foundation (ASF) under one
  4. or more contributor license agreements. See the NOTICE file
  5. distributed with this work for additional information
  6. regarding copyright ownership. The ASF licenses this file
  7. to you under the Apache License, Version 2.0 (the
  8. "License"); you may not use this file except in compliance
  9. with the License. You may obtain a copy of the License at
  10. http://www.apache.org/licenses/LICENSE-2.0
  11. Unless required by applicable law or agreed to in writing,
  12. software distributed under the License is distributed on an
  13. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  14. KIND, either express or implied. See the License for the
  15. specific language governing permissions and limitations
  16. under the License.
  17. -->
  18. <!--
  19. | This is the configuration file for Maven. It can be specified at two levels:
  20. |
  21. | 1. User Level. This settings.xml file provides configuration for a single user,
  22. | and is normally provided in ${user.home}/.m2/settings.xml.
  23. |
  24. | NOTE: This location can be overridden with the CLI option:
  25. |
  26. | -s /path/to/user/settings.xml
  27. |
  28. | 2. Global Level. This settings.xml file provides configuration for all Maven
  29. | users on a machine (assuming they're all using the same Maven
  30. | installation). It's normally provided in
  31. | ${maven.conf}/settings.xml.
  32. |
  33. | NOTE: This location can be overridden with the CLI option:
  34. |
  35. | -gs /path/to/global/settings.xml
  36. |
  37. | The sections in this sample file are intended to give you a running start at
  38. | getting the most out of your Maven installation. Where appropriate, the default
  39. | values (values used when the setting is not specified) are provided.
  40. |
  41. |-->
  42. <settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
  43. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  44. xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
  45. <!-- localRepository
  46. | The path to the local repository maven will use to store artifacts.
  47. |
  48. | Default: ${user.home}/.m2/repository
  49. <localRepository>/path/to/local/repo</localRepository>
  50. -->
  51. <localRepository>${user.home}/.m2/repository</localRepository>
  52. <mirrors>
  53. <!-- mirror
  54. | Specifies a repository mirror site to use instead of a given repository. The repository that
  55. | this mirror serves has an ID that matches the mirrorOf element of this mirror. IDs are used
  56. | for inheritance and direct lookup purposes, and must be unique across the set of mirrors.
  57. |
  58. <mirror>
  59. <id>mirrorId</id>
  60. <mirrorOf>repositoryId</mirrorOf>
  61. <name>Human Readable Name for this Mirror.</name>
  62. <url>http://my.repository.com/repo/path</url>
  63. </mirror>
  64. <mirror>
  65. <id>aliyunmaven</id>
  66. <mirrorOf>*</mirrorOf>
  67. <name>阿里云公共仓库</name>
  68. <url>https://maven.aliyun.com/repository/public</url>
  69. </mirror>
  70. -->
  71. <mirror>
  72. <id>nexus</id>
  73. <name>maven-public</name>
  74. <url>http://114.115.206.163:8081/repository/maven-public/</url>
  75. <mirrorOf>*</mirrorOf>
  76. </mirror>
  77. <mirror>
  78. <id>central</id>
  79. <name>repo-central</name>
  80. <mirrorOf>*</mirrorOf>
  81. <url>https://repo1.maven.org/maven2/</url>
  82. </mirror>
  83. </mirrors>
  84. </settings>