zoukankan      html  css  js  c++  java
  • maven 发布到 本地仓库

    <!-- 发布命令 -->
        <distributionManagement>
            <repository>
                <id>nexus_release</id>
                <name>Nexus ReleaseRepository</name>
                <url>http://localhost:8081/nexus/content/repositories/releases/</url>
            </repository>
            <snapshotRepository>
                <id>nexus_snapshot</id>
                <name>Nexus SnapshotRepository</name>
                <url>http://localhost:8081/nexus/content/repositories/snapshots/</url>
            </snapshotRepository>
        </distributionManagement>

    setting.xml 中

           <server>
            <id>nexus_release</id>
            <username>admin</username>
            <password>admin123</password>
          </server>
    
          <server>
            <id>nexus_snapshot</id>
            <username>admin</username>
            <password>admin123</password>
          </server>

    发布命令

    clean deploy

    更新子模块版本命令:

    mvn versions:update-child-modules

  • 相关阅读:
    第二十天笔记
    第十九天笔记
    第十七天笔记
    第十五天笔记
    第十六天笔记
    第十二天笔记
    数字三角形
    最大子段和与最大子矩阵和
    分组背包
    二维背包
  • 原文地址:https://www.cnblogs.com/whm-blog/p/7287399.html
Copyright © 2011-2022 走看看