zoukankan      html  css  js  c++  java
  • maven nexus 设置

    首先设置: 

    <servers>
        <server>  
                <id>releases</id>  
                <username>xxx</username>  
                <password>zzz</password>  
        </server>  
          
        <server>  
                <id>snapshots</id>  
                <username>xxx</username>  
                <password>zzz</password>  
        </server>
     </servers>

    再设置:

      <mirrors>
        <mirror>  
                <id>nexus</id>
          <name>Team Nexus Repository</name>
          <url>http://maven.xxx.com:8081/nexus/content/groups/public/</url>
          <mirrorOf>central</mirrorOf>  
            </mirror>
      </mirrors>

     <profiles>
        <profile>
          <id>nexus</id>
          <repositories>
            <repository>
              <id>central</id>
              <url>http://repo.maven.apache.org/maven2</url>
              <releases>
                <enabled>true</enabled>
              </releases>
                    <snapshots>
                      <enabled>true</enabled>
                    </snapshots>
            </repository>
          </repositories>
          <pluginRepositories>
                  <pluginRepository>
                      <id>central</id>
                      <url>http://repo.maven.apache.org/maven2</url>
                      <releases>
                        <enabled>true</enabled>
                      </releases>
                      <snapshots>
                        <enabled>true</enabled>
                      </snapshots>
                   </pluginRepository>
              </pluginRepositories>
        </profile>
      </profiles>
     
     
      <activeProfiles>
        <activeProfile>nexus</activeProfile>      
      </activeProfiles>

  • 相关阅读:
    微软与谷歌盈利模式对比分析
    unity开源移动库iTween使用完整Demo
    开发过程遇到的问题和解决方法(备忘)
    微信开发基础教程
    WorkFlow基础实战
    操作系统学习笔记
    编译原理学习
    微信生态圈盈利模式分析
    数据与计算机通信学习笔记
    利用Spring.Net技术打造可切换的分布式缓存读写类
  • 原文地址:https://www.cnblogs.com/ldsweely/p/11586686.html
Copyright © 2011-2022 走看看