zoukankan      html  css  js  c++  java
  • Maven full settings.xml

    <?xml version="1.0" encoding="UTF-8"?>
    
    <!--
    Licensed to the Apache Software Foundation (ASF) under one
    or more contributor license agreements.  See the NOTICE file
    distributed with this work for additional information
    regarding copyright ownership.  The ASF licenses this file
    to you under the Apache License, Version 2.0 (the
    "License"); you may not use this file except in compliance
    with the License.  You may obtain a copy of the License at
    
        http://www.apache.org/licenses/LICENSE-2.0
    
    Unless required by applicable law or agreed to in writing,
    software distributed under the License is distributed on an
    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
    KIND, either express or implied.  See the License for the
    specific language governing permissions and limitations
    under the License.
    -->
    
    <!--
     | This is the configuration file for Maven. It can be specified at two levels:
     |
     |  1. User Level. This settings.xml file provides configuration for a single user, 
     |                 and is normally provided in ${user.home}/.m2/settings.xml.
     |
     |                 NOTE: This location can be overridden with the CLI option:
     |
     |                 -s /path/to/user/settings.xml
     |
     |  2. Global Level. This settings.xml file provides configuration for all Maven
     |                 users on a machine (assuming they're all using the same Maven
     |                 installation). It's normally provided in 
     |                 ${maven.home}/conf/settings.xml.
     |
     |                 NOTE: This location can be overridden with the CLI option:
     |
     |                 -gs /path/to/global/settings.xml
     |
     | The sections in this sample file are intended to give you a running start at
     | getting the most out of your Maven installation. Where appropriate, the default
     | values (values used when the setting is not specified) are provided.
     |
     |-->
    <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
       | The path to the local repository maven will use to store artifacts.
       |
       | Default: ${user.home}/.m2/repository
      <localRepository>/path/to/local/repo</localRepository>
      -->
     <localRepository>C:Usersahu.m2
    epository</localRepository>
     
      <pluginGroups>
          <pluginGroup>org.mortbay.jetty</pluginGroup>
          <pluginGroup>org.codehaus.cargo</pluginGroup>
      </pluginGroups>
    
      <proxies>
      </proxies>
    
      <servers>
          <server>
              <id>releases</id>
              <username>deployment</username>
              <password>deployment123</password>
          </server>
          <server>
              <id>snapshots</id>
              <username>deployment</username>
              <password>deployment123</password>
          </server>  
      </servers>
    
      
    
      <profiles>
        <profile>
          <id>nexus</id>
          <repositories>
          <repository>
              <id>central</id>
              <name>central</name>
              <url>http://servername/nexus/content/groups/public/</url>
              <releases><enabled>true</enabled></releases>
              <snapshots><enabled>true</enabled></snapshots>
            </repository>
            
            <repository>
              <id>soapui</id>
              <name>soapui</name>
              <url>http://www.soapui.org/repository/maven2</url>
              <releases><enabled>true</enabled></releases>
              <snapshots><enabled>true</enabled></snapshots>
            </repository>
            
            <repository>
                <id>jfrog-plugins</id>
                <name>jfrog-plugins-dist</name>
                <url>http://repo.jfrog.org/artifactory/plugins-releases</url>
           </repository>
           <repository>
                <id>repo.jenkins-ci.org</id>
                <name>jenkins-plugins-dist</name>
                <url>http://repo.jenkins-ci.org/public/</url>            
           </repository>
            
          </repositories>
         <pluginRepositories>
            <pluginRepository>
              <id>central</id>
              <url>http://servername/nexus/content/groups/public/</url>
              <releases><enabled>true</enabled></releases>
              <snapshots><enabled>true</enabled></snapshots>
            </pluginRepository>
            <pluginRepository>
              <id>soapui</id>
              <name>soapui</name>
              <url>http://www.soapui.org/repository/maven2</url>
              <releases><enabled>true</enabled></releases>
              <snapshots><enabled>true</enabled></snapshots>
            </pluginRepository>
            <pluginRepository>
                <id>repo.jenkins-ci.org</id>
                <url>http://repo.jenkins-ci.org/public/</url>
                <releases><enabled>true</enabled></releases>
                <snapshots><enabled>true</enabled></snapshots>
            </pluginRepository>
          </pluginRepositories>
        </profile>
       </profiles>
       
        <mirrors>
        
        <mirror>
          <id>central</id>
          <mirrorOf>*,!soapui,!jfrog-plugins,!repo.jenkins-ci.org</mirrorOf>
          <url>http://servername/nexus/content/groups/public/</url>
        </mirror>
        <!--
        <mirror>
          <id>soapui</id>
          <url>http://www.soapui.org/repository/maven2</url>
          <mirrorOf>*</mirrorOf>
        </mirror> -->
        
        
      </mirrors>
    <!-- Give access to Jenkins plugins --> 
      <activeProfiles>
        <activeProfile>nexus</activeProfile>
      </activeProfiles>
      
      
    </settings>
    
    </settings>
    
    <!-- id should be the same as above server id-->
    <!--
    <distributionManagement> 
    
    <repository> 
        <id>releases</id>  
        <name>Internal Releases</name> 
        <url>http://servername/nexus/content/groups/public/</url> 
    </repository> 
    <snapshotRepository> 
        <id>snapshots</id> 
        <name>Internal Snapshots</name> 
        <url>http://servername/nexus/content/groups/public/
    </distributionManagement>
    
    -->
  • 相关阅读:
    lua的多种实现方式(1-100的和)
    51单片机交通灯(定时器+38译码器+中断)
    51单片机定时器实现LED闪烁
    51单片机0号与1号外部中断实例
    51单片机:IO口扩展芯片用法(74HC165,74HC595)
    mybatis org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)
    Intellij IDEA运行报Command line is too long解法
    Jmeter命令行运行实例讲解
    Windows10在当前目录快速打开cmd的方法
    Jmeter接口测试对json串中的值进行断言
  • 原文地址:https://www.cnblogs.com/alterhu/p/4675304.html
Copyright © 2011-2022 走看看