Maven的settings文件

刺骨的言语ヽ痛彻心扉 2023-01-23 12:59 295阅读 0赞

前言

setting文件


  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. <mirrors> <!-- mirror
  6. | Specifies a repository mirror site to use instead of a given repository. The repository that
  7. | this mirror serves has an ID that matches the mirrorOf element of this mirror. IDs are used
  8. | for inheritance and direct lookup purposes, and must be unique across the set of mirrors.
  9. |
  10. <mirror>
  11. <id>mirrorId</id>
  12. <mirrorOf>repositoryId</mirrorOf>
  13. <name>Human Readable Name for this Mirror.</name>
  14. <url>http://my.repository.com/repo/path</url>
  15. </mirror>
  16. -->
  17. <mirror>
  18. <id>alimaven</id>
  19. <name>aliyun maven</name>
  20. <url>http://maven.aliyun.com/nexus/content/groups/public/</url>
  21. <mirrorOf>central</mirrorOf>
  22. </mirror>
  23. <mirror>
  24. <id>uk</id>
  25. <mirrorOf>central</mirrorOf>
  26. <name>Human Readable Name for this Mirror.</name>
  27. <url>http://uk.maven.org/maven2/</url>
  28. </mirror>
  29. <mirror>
  30. <id>CN</id>
  31. <name>OSChina Central</name>
  32. <url>http://maven.oschina.net/content/groups/public/</url>
  33. <mirrorOf>central</mirrorOf>
  34. </mirror>
  35. <mirror>
  36. <id>nexus</id>
  37. <name>internal nexus repository
  38. </name>
  39. <url>http://repo.maven.apache.org/maven2</url>
  40. <mirrorOf>central</mirrorOf>
  41. </mirror>
  42. </mirrors>
  43. </settings>

发表评论

表情:
评论列表 (有 0 条评论,295人围观)

还没有评论,来说两句吧...

相关阅读

    相关 mavensetting文件-02

    仓库与镜像 1.仓库分类 maven 的仓库分为本地仓库和远程仓库。 2.本地仓库 本地仓库就是储存在你自己电脑上的仓库 3.远程仓库 远程仓库也叫做中央仓库,默认