Maven settings.xml 配置

  1. xmlversion="1.0"encoding="UTF-8"?>
  2. <settingsxmlns="http://maven.apache.org/POM/4.0.0"xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0http://maven.apache.org/xsd/settings-1.0.0.xsd">
  4. <localRepository>usr/local/mavenlocalRepository>
  5. <interactiveMode>trueinteractiveMode>
  6. <usePluginRegistry>falseusePluginRegistry>
  7. <offline>falseoffline>
  8. <pluginGroups>
  9. <pluginGroup>org.codehaus.mojopluginGroup>
  10. pluginGroups>
  11. <proxy>
  12. <id>myproxyid>
  13. <active>trueactive>
  14. <protocol>httpprotocol>
  15. <host>proxy.somewhere.comhost>
  16. <port>8080port>
  17. <username>proxyuserusername>
  18. <password>somepasswordpassword>
  19. <nonProxyHosts>*.google.com|ibiblio.orgnonProxyHosts>
  20. proxy>
  21. proxies>
  22. <servers>
  23. <server>
  24. <id>server001id>
  25. <username>my_loginusername>
  26. <password>my_passwordpassword>
  27. <privateKey>${usr.home}/.ssh/id_dsaprivateKey>
  28. <passphrase>some_passphrasepassphrase>
  29. <filePermissions>664filePermissions>
  30. <directoryPermissions>775directoryPermissions>
  31. <configuration>configuration>
  32. server>
  33. servers>
  34. <mirrors>
  35. <mirror>
  36. <id>planetmirror.comid>
  37. <name>PlanetMirrorAustralianame>
  38. <url>http://downloads.planetmirror.com/pub/maven2url>
  39. <profile>
  40. <id>testid>
  41. <activeByDefault>falseactiveByDefault>
  42. <jdk>1.5jdk>
  43. <os>
  44. <name>WindowsXPname>
  45. <family>Windowsfamily>
  46. <arch>x86arch>
  47. <version>5.1.2600version>
  48. os>
  49. <property>
  50. <name>mavenVersionname>
  51. <value>2.0.3value>
  52. property>
  53. <file>
  54. <exists>/usr/local/hudson/hudson-home/jobs/maven-guide-zh-to-production/workspace/exists>
  55. <missing>/usr/local/hudson/hudson-home/jobs/maven-guide-zh-to-production/workspace/missing>
  56. file>
  57. activation>
  58. <repositories>
  59. <repository>
  60. <id>codehausSnapshotsid>
  61. <name>CodehausSnapshotsname>
  62. <releases>
  63. <enabled>falseenabled>
  64. <updatePolicy>alwaysupdatePolicy>
  65. <checksumPolicy>warnchecksumPolicy>
  66. releases>
  67. <snapshots>
  68. <enabled/>
  69. <updatePolicy/>
  70. <checksumPolicy/>
  71. snapshots>
  72. <url>http://snapshots.maven.codehaus.org/maven2url>
  73. <pluginRepository>
  74. <releases>
  75. <enabled/>
  76. <updatePolicy/>
  77. <checksumPolicy/>
  78. releases>
  79. <snapshots>
  80. <enabled/>
  81. <updatePolicy/>
  82. <checksumPolicy/>
  83. snapshots>
  84. <id/>
  85. <name/>
  86. <url/>
  87. <layout/>
  88. pluginRepository>
  89. pluginRepositories>

你可能感兴趣的:(Maven settings.xml 配置)