首页 > 代码库 > mvn setting 配置

mvn setting 配置

<?xml version="1.0" encoding="UTF-8"?>


<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" 
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
          xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
  
	<mirrors>
    <mirror>
      <id>CN</id>
      <name>OSChina Central</name>                                                                                                                       
      <url>http://maven.oschina.net/content/groups/public/</url>
      <mirrorOf>central</mirrorOf>
    </mirror>
  </mirrors>
  <profiles>
     
	<profile>
       <id>dev</id>
       <repositories>
			<repository>  
			  <id>public</id>  
			  <name>Maven unicom Mirror</name>  
			  <!-- <url>http://172.16.0.75:8081/nexus/content/groups/public/</url>  -->
			  <url>http://10.127.1.172:8081/artifactory/remote-repos</url>
			  <releases>  
				<enabled>true</enabled>  
			  </releases>  
			  <snapshots>  
				<enabled>true</enabled>  
			  </snapshots>  
			</repository> 
       </repositories>
    </profile>

  </profiles>

 <activeProfiles>
    <activeProfile>artifactory</activeProfile>
 </activeProfiles>

  <servers>
  <server>
	  <id>remote-repos</id>
	  <username>qibaichao</username>
	  <password>123456</password>
  </server>
  </servers>
</settings>


mvn setting 配置