zoukankan      html  css  js  c++  java
  • maven阿里云镜像

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

     附私服配置:

    <?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.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>
      -->
    
      <!-- interactiveMode
       | This will determine whether maven prompts you when it needs input. If set to false,
       | maven will use a sensible default value, perhaps based on some other setting, for
       | the parameter in question.
       |
       | Default: true
      <interactiveMode>true</interactiveMode>
      -->
    
      <!-- offline
       | Determines whether maven should attempt to connect to the network when executing a build.
       | This will have an effect on artifact downloads, artifact deployment, and others.
       |
       | Default: false
      <offline>false</offline>
      -->
    
      <!-- pluginGroups
       | This is a list of additional group identifiers that will be searched when resolving plugins by their prefix, i.e.
       | when invoking a command line like "mvn prefix:goal". Maven will automatically add the group identifiers
       | "org.apache.maven.plugins" and "org.codehaus.mojo" if these are not already contained in the list.
       |-->
      <pluginGroups>
        <!-- pluginGroup
         | Specifies a further group identifier to use for plugin lookup.
        <pluginGroup>com.your.plugins</pluginGroup>
        -->
      </pluginGroups>
    
    
      <servers>
        <!-- 发布Releases版的账号,ID要与distributionManagement中的Releases ID一致 -->
        <server>
          <id>nexus-releases</id>
          <username>admin</username>
          <password>admin123</password>
        </server>
        <!-- 发布snapshot版的账号,ID要与distributionManagement中的snapshot ID一致 -->
        <server>
          <id>nexus-snapshot</id>
          <username>admin</username>
          <password>admin123</password>
        </server>
      </servers>
    
      <mirrors>
        <mirror>  
          <id>nexus</id>  
          <name>crop-nexus</name>
          <mirrorOf>*</mirrorOf>  
          <url>http://47.93.47.177:8081/nexus/content/groups/public/</url>  
        </mirror>  
      </mirrors>
    
     
    <profiles>
        <profile>
          <id>nexus</id>
          <repositories>
            <repository>
              <id>nexus-releases</id>
              <name>nexus-releases</name>
              <url>http://47.93.47.177:8081/nexus/content/repositories/releases/</url>
            <snapshots>
            <releases><enabled>true</enabled></releases>
            <snapshots><enabled>true</enabled></snapshots>
            </snapshots>
           </repository>
    
    	 <repository>
              <id>nexus-snapshot</id>
              <name>nexus-snapshot</name>
              <url>http://47.93.47.177:8081/nexus/content/repositories/snapshots/</url>
            <snapshots>
            <releases><enabled>true</enabled></releases>
            <snapshots><enabled>true</enabled></snapshots>
            </snapshots>
           </repository>
    
         </repositories>
    
        <pluginRepositories>
            <pluginRepository>
                <id>nexus-releases</id>
                <url>http://47.93.47.177:8081/nexus/content/repositories/releases/</url>
                <releases><enabled>true</enabled></releases>
                <snapshots><enabled>true</enabled></snapshots>
            </pluginRepository>
    
    	<pluginRepository>
                <id>nexus-snapshot</id>
                <url>http://47.93.47.177:8081/nexus/content/repositories/snapshots/</url>
                <releases><enabled>true</enabled></releases>
                <snapshots><enabled>true</enabled></snapshots>
            </pluginRepository>
        </pluginRepositories>
    
       </profile>
     </profiles>
    <!-- 激活nexus私服 -->
     <activeProfiles>
       <activeProfile>nexus</activeProfile>
     </activeProfiles>
    </settings>
    
  • 相关阅读:
    SQL查询语句大全集锦
    SQL Union和SQL Union All用法
    SQL Server中替换函数STUFF、replace的使用
    oscache的使用(例子)
    SQL CURSOR 游标 存储过程
    折腾iPhone的生活——AirDrop的使用
    折腾iPhone的生活——通过设置使iPhone更省电
    折腾iPhone的生活——iPhone 5s 开启 assistive touch 后卡顿的问题
    vimium快捷键列表
    在MacOSX下使用Github管理Xcode代码
  • 原文地址:https://www.cnblogs.com/lanqie/p/7592446.html
Copyright © 2011-2022 走看看