zoukankan      html  css  js  c++  java
  • maven发布项目的snapshot到nexus

    1、配置发布地址信息

    <repositories>
            <repository>
                <id>nexus</id>
                <name>Local Repository</name>
                <url>http://192.168.8.23:8081/nexus/content/groups/public/</url>
            </repository>
            <repository>
                <id>offical</id>
                <name>Maven Official Repository</name>
                <url>http://repo1.maven.org/maven2</url>
                <snapshots>
                    <enabled>false</enabled>
                </snapshots>
            </repository>
        </repositories>
    
    
        <distributionManagement>
            <repository>
                <id>shj-releases</id>
                <name>Internal Releases</name>
                <url>http://192.168.8.23:8081/nexus/content/repositories/shj-releases/</url>
            </repository>
            <snapshotRepository>
                <id>shj-snapshots</id>
                <name>Internal Snapshots</name>
                <url>http://192.168.8.23:8081/nexus/content/repositories/shj-snapshots/</url>
            </snapshotRepository>
        </distributionManagement>

    2、设置settings.xml

      <servers>
    <server>   
            <id>nexus</id>   
            <username>admin</username>
            <password>admin123</password>   
        </server>
    
          <server>
              <id>shj-releases</id>
              <username>admin</username>
              <password>admin123</password>
          </server>
    
          <server>
              <id>shj-snapshots</id>
              <username>admin</username>
              <password>admin123</password>
          </server>
    
      </servers>
  • 相关阅读:
    RQNOJ 1 明明的随机数
    poj1284
    poj1061
    51nod1305
    51nod 1344
    poj2240
    poj1860
    使用SwitchToThisWindow时不切换问题
    c#拷贝整个文件夹到指定文件夹下(非递归)
    IniHelper
  • 原文地址:https://www.cnblogs.com/cocoat/p/6698706.html
Copyright © 2011-2022 走看看