maven setting.xml配置说明

  1 xml version="1.0" encoding="UTF-8"?>
  2 <settings xmlns="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.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
  4  
  5  <localRepository>usr/local/mavenlocalRepository>
  6  
  7  <interactiveMode>trueinteractiveMode>
  8  
  9  <usePluginRegistry>falseusePluginRegistry>
 10  
 11  <offline>falseoffline>
 12  
 13  <pluginGroups>
 14   
 15   <pluginGroup>org.codehaus.mojopluginGroup>
 16  pluginGroups>
 17  
 18  <proxies>
 19   
 20   <proxy>
 21    
 22    <id>myproxyid>
 23    
 24    <active>trueactive>
 25    
 26    <protocol>httpprotocol>
 27    
 28    <host>proxy.somewhere.comhost>
 29    
 30    <port>8080port>
 31    
 32    <username>proxyuserusername>
 33    
 34    <password>somepasswordpassword>
 35    
 36    <nonProxyHosts>*.google.com|ibiblio.orgnonProxyHosts>
 37   proxy>
 38  proxies>
 39  
 40  <servers>
 41   
 42   <server>
 43    
 44    <id>server001id>
 45    
 46    <username>my_loginusername>
 47    
 48    <password>my_passwordpassword>
 49    
 50    <privateKey>${usr.home}/.ssh/id_dsaprivateKey>
 51    
 52    <passphrase>some_passphrasepassphrase>
 53    
 54    <filePermissions>664filePermissions>
 55    
 56    <directoryPermissions>775directoryPermissions>
 57    
 58    <configuration>configuration>
 59   server>
 60  servers>
 61  
 62  <mirrors>
 63   
 64   <mirror>
 65    
 66    <id>planetmirror.comid>
 67    
 68    <name>PlanetMirror Australianame>
 69    
 70    <url>http://downloads.planetmirror.com/pub/maven2url>
 71    
 72    <mirrorOf>centralmirrorOf>
 73   mirror>
 74  mirrors>
 75  
 76  <profiles>
 77   
 78   <profile>
 79    
 80    <id>testid>
 81    
 82    <activation>
 83     
 84     <activeByDefault>falseactiveByDefault>
 85     
 86     <jdk>1.5jdk>
 87     
 88     <os>
 89      
 90      <name>Windows XPname>
 91      
 92      <family>Windowsfamily>
 93      
 94      <arch>x86arch>
 95      
 96      <version>5.1.2600version>
 97     os>
 98     
 99     <property>
100      
101      <name>mavenVersionname>
102      
103      <value>2.0.3value>
104     property>
105     
106     <file>
107      
108      <exists>/usr/local/hudson/hudson-home/jobs/maven-guide-zh-to-production/workspace/exists>
109      
110      <missing>/usr/local/hudson/hudson-home/jobs/maven-guide-zh-to-production/workspace/missing>
111     file>
112    activation>
113    
120    <properties>
121     <user.install>/ebs1/build-machine/usr/local/hudson/hudson-home/jobs/maven-guide-user.install>
122    properties>
123    
124    <repositories>
125     
126     <repository>
127      
128      <id>codehausSnapshotsid>
129      
130      <name>Codehaus Snapshotsname>
131      
132      <releases>
133       
134       <enabled>falseenabled>
135       
136       <updatePolicy>alwaysupdatePolicy>
137       
138       <checksumPolicy>warnchecksumPolicy>
139      releases>
140      
141      <snapshots>
142       <enabled/><updatePolicy/><checksumPolicy/>
143      snapshots>
144      
145      <url>http://snapshots.maven.codehaus.org/maven2url>
146      
147      <layout>defaultlayout>
148     repository>
149    repositories>
150    
151    <pluginRepositories>
152     
153           <pluginRepository>           
154      <releases>      
155       <enabled/><updatePolicy/><checksumPolicy/>
156      releases>
157      <snapshots>
158       <enabled/><updatePolicy/><checksumPolicy/>
159      snapshots>
160      <id/><name/><url/><layout/>
161           pluginRepository>
162         pluginRepositories>
163         
165    <activeProfiles>
166     
167     <activeProfile>env-testactiveProfile>
168    activeProfiles>
169   profile>
170  profiles>
171 settings>

 

你可能感兴趣的:(maven setting.xml配置说明)