zoukankan      html  css  js  c++  java
  • [转] 分享一个快的飞起的maven的settings.xml文件

    <?xml version="1.0"?>  
    <settings>  
    <localRepository>/home/yizhen/.m2/repository</localRepository><!--需要改成自己的maven的本地仓库地址-->  
        <mirrors>  
            <mirror>  
                <id>alimaven</id>  
                <name>aliyun maven</name>  
                <url>http://maven.aliyun.com/nexus/content/groups/public/</url>  
                <mirrorOf>central</mirrorOf>  
            </mirror>  
        </mirrors>  
      <profiles>  
        <profile>  
           <id>nexus</id>   
            <repositories>  
                <repository>  
                    <id>nexus</id>  
                    <name>local private nexus</name>  
                    <url>http://maven.oschina.net/content/groups/public/</url>  
                    <releases>  
                        <enabled>true</enabled>  
                    </releases>  
                    <snapshots>  
                        <enabled>false</enabled>  
                    </snapshots>  
                </repository>  
            </repositories>  
              
            <pluginRepositories>  
                <pluginRepository>  
                <id>nexus</id>  
                <name>local private nexus</name>  
                <url>http://maven.oschina.net/content/groups/public/</url>  
                <releases>  
                    <enabled>true</enabled>  
                </releases>  
                <snapshots>  
                    <enabled>false</enabled>  
                </snapshots>  
                </pluginRepository>  
            </pluginRepositories>  
        </profile></profiles>  
    </settings>  

    该文件的名称是settings.xml,把该文件放到~/.m2/文件夹下即可。 

    源文地址:http://blog.csdn.net/yizhenn/article/details/53455058

  • 相关阅读:
    VBA的几个小Demo_2
    VBA的几个小Demo
    Django部署在阿里云服务器上
    python面试题及解析
    Django知识扩展
    Django文件下载2
    Django文件下载
    Django文件上传
    My_First_Web
    10个jQuery小技巧
  • 原文地址:https://www.cnblogs.com/daxia/p/7875964.html
Copyright © 2011-2022 走看看