maven setting conf文件


  

<?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">
<localRepository>D:\maven\repo_forever</localRepository>
  <pluginGroups>
  </pluginGroups>
  <proxies>
    <!-- proxy
     | Specification for one proxy, to be used in connecting to the network.
     |
    <proxy>
      <id>optional</id>
      <active>true</active>
      <protocol>http</protocol>
      <username>proxyuser</username>
      <password>proxypass</password>
      <host>proxy.host.net</host>
      <port>80</port>
      <nonProxyHosts>local.net|some.host.com</nonProxyHosts>
    </proxy>
    -->
  </proxies>
  <servers>
    <server>  
    <id>releases</id>  
    <username>admin</username>  
    <password>admin123</password>  
  </server>  
  <server>  
    <id>snapshots</id>  
    <username>admin</username>  
    <password>admin123</password>  
  </server>
  
  </servers>

  <mirrors>
  </mirrors>
  
<profiles>  
    <profile>  
        <id>nexus</id>  
        <repositories>  
            <repository>  
                <id>releases</id>  
                 <name>Nexus Release Repository</name> 
                <url>http://127.0.0.1:8081/nexus/content/repositories/releases/</url>  
                <releases>  
                    <enabled>true</enabled>  
                </releases>  
                <snapshots>  
                    <enabled>true</enabled>  
                </snapshots>  
            </repository>  
        </repositories>  
        <pluginRepositories>  
            <pluginRepository>  
                <id>snapshots</id>  
                <name>Nexus Snapshot Repository</name>    
                <url>http://127.0.0.1:8081/nexus/content/repositories/snapshots/</url>  
                <releases>  
                    <enabled>true</enabled>  
                </releases>  
                <snapshots>  
                    <enabled>true</enabled>  
                </snapshots>  
            </pluginRepository>  
        </pluginRepositories>  
    </profile>  
</profiles>  
<activeProfiles>  
    <activeProfile>nexus</activeProfile>  
</activeProfiles>  
</settings>


0
0

暂无评论