自己总结的settings.xml文件注释

前端之家收集整理的这篇文章主要介绍了自己总结的settings.xml文件注释前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
<?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">
    <proxies>
        <proxy>
            <id>proxy-bj</id>
            <active>true</active>
            <protocol>http</protocol>
            <username></username>
            <password></password>
            <host>proxy3.bj.petrochina</host>
            <port>8080</port>
            <nonProxyHosts>localhost|10.78.56.6|10.88.112.119|devhost.rfdtd.cnpc</nonProxyHosts>
        </proxy>
    </proxies><!-- proxies 这块是代理是公司用的 -->

  <mirrors>  <!-- mirrors 是镜像文件,就是公司不让从外网下东西所以指定了镜像,如果把这个去掉就可以上外网下包了 -->
	      <mirror>
            <id>bajiao</id>
            <mirrorOf>central</mirrorOf>
            <name>Human Readable Name for this Mirror.</name>
            <url>http://devhost.rfdtd.cnpc/nexus/content/repositories/maven2/</url><!--这个是镜像对应的包地址-->
        </mirror>
        <!--
        <mirror>
            <id>repo2</id>
            <mirrorOf>central</mirrorOf>
            <name>Human Readable Name for this Mirror.</name>
            <url>http://repo2.maven.apache.org/maven2/</url>
        </mirror>
        -->
    </mirrors>
  
    <servers><!-- 设置用户名密码 -->
        <server>
            <id>nexus-snapshots</id>
            <username>admin</username>
            <password>admin123</password>
        </server>
        <server>
            <id>releases</id>
            <username>admin</username>
            <password>admin123</password>
        </server>
    </servers>
    <profiles><!-- 这个就是访问外网的地址 -->
        <profile>
            <id>dev</id>
            <repositories>
                <repository>
                    <url>http://devhost.rfdtd.cnpc/nexus/content/groups/public/</url>
                    <id>internal</id>
                    <layout>default</layout>
                    <releases>  
                        <enabled>true</enabled>  
                        <updatePolicy>never</updatePolicy>
                        <checksumPolicy>warn</checksumPolicy>  
                    </releases>  
                    <snapshots>  
                        <enabled>true</enabled>  
                    </snapshots>       
                </repository>
            </repositories>
        </profile>
    </profiles>
    <activeProfiles><!--如果函数被注释了,就会走这个方法dev,访问外网下载包 -->
        <activeProfile>dev</activeProfile>
    </activeProfiles>
 
</settings>
原文链接:https://www.f2er.com/xml/297281.html

猜你在找的XML相关文章