您的位置:首页 > 其它

svn pom文件基础设置

2013-05-31 10:56 148 查看
1. pom外网设置

<!--settings>
    <profiles>
        <profile>
            <id>dev</id>
            <repositories>
                <repository>
                    <id>local-nexus</id>
                    <url>http://172.16.0.140:8085/nexus/content/groups/public/</url>
                    <releases>
                        <enabled>true</enabled>
                    </releases>
                    <snapshots>
                        <enabled>true</enabled>
                    </snapshots>
                </repository>
            </repositories>
        </profile>
    </profiles>
    <activeProfiles>
        <activeProfile>dev</activeProfile>
    </activeProfiles>
</settings-->
<settings>   
        <profiles>  
        <profile>  
        <id>Snapshots</id>  
        <repositories>  
          <repository>  
            <id>Maven Snapshots</id>  
            <url>http://snapshots.maven.codehaus.org/maven2/</url>  
            <snapshots>  
              <enabled>true</enabled>  
            </snapshots>  
            <releases>  
              <enabled>false</enabled>  
            </releases>  
         </repository>
		     <repository>  
    			<id>java</id>  
    			<name>java official repository</name>  
    			<url>http://download.java.net/maven/2/</url>  
    		 </repository>  
       </repositories>  
       <pluginRepositories>  
         <pluginRepository>  
           <id>Maven Snapshots</id>  
           <url>http://snapshots.maven.codehaus.org/maven2/</url>  
           <snapshots>  
             <enabled>true</enabled>  
           </snapshots>  
           <releases>  
             <enabled>false</enabled>  
           </releases>  
         </pluginRepository>  
       </pluginRepositories>  
      </profile>  
    </profiles>  
    <activeProfiles>  
      <activeProfile>Snapshots</activeProfile>  
    </activeProfiles>  
</settings>


2. pom内网设置



<settings> 
	<mirrors>
		<mirror>
			<id>megait</id>
			<name>megait's maven mirror of central</name>
			<url>http://222.68.19.115:8003/nexus/content/groups/public/</url>
			<mirrorOf>central</mirrorOf>
		</mirror>
	</mirrors>
</settings>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: