maven的setting配置远程仓库

maven的setting,配置远程库。

    <mirror>
      <id>nexus-aliyun</id>
      <mirrorOf>central</mirrorOf> 
      <url>http://maven.aliyun.com/nexus/content/groups/public/</url>
    </mirror>

本地库配置

</profiles>
    <profile>
        <id>nexus-local</id>
        <activation>
            <activeByDefault>true</activeByDefault>    
        </activation>
        <repositories>
            <repository>
                <id>LocalMirrorId</id>
                <url>http://10.1.*.*:8081/nexus/content/groups/public</url>
                <releases><enabled>true</enabled></releases> 
                <snapshots>
                    <enable>true</enable>
                    <updatePolicy>daily</updatePolicy>    
                </snapshots>
            </repository>
        </repositories>
    </profile>
</profiles>
    
  
<activeProfiles>
    <activeProfile>nexus-local</activeProfile>
</activeProfiles>
原文地址:https://www.cnblogs.com/jinzhiming/p/14842143.html