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>

  • 相关阅读:
    Mybatis框架学习_6_mapper.xml 文件中的输入参数详解 (paraterType)
    Mybatis框架学习_5_自定义类型转换器
    Mybatis框架学习_4_属性文件、全局参数、别名
    Mybatis框架学习_3_基于约定或动态代理实现增删改查
    Mybatis框架学习_2_增删改查的简单实现
    Mybatis框架学习_1_简介以及入门示例
    Linux 系统下启动命名的书写过程
    spring-boot-Web学习2-模板引擎 Thymeleaf
    spring-boot-Web学习1-简介
    MacBook无法开机问题
  • 原文地址:https://www.cnblogs.com/ldsweely/p/11586686.html
Copyright © 2011-2022 走看看