• 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>

  • 相关阅读:
    PHP之项目环境变量设置
    nginx相关服务实践
    模拟器的基本使用
    Redis常见问题汇总
    用OpenResty搭建高性能服务端
    Lua代码规范
    Lua之基础篇
    如何设计一个高性能短链系统?
    通过双 key 来解决缓存并发问题
    Golang常见问题汇总
  • 原文地址:https://www.cnblogs.com/ldsweely/p/11586686.html
Copyright © 2020-2023  润新知