前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >将 3rd 方 JAR 部署到远程 Maven 库

将 3rd 方 JAR 部署到远程 Maven 库

作者头像
JMCui
发布2023-03-02 18:24:02
4030
发布2023-03-02 18:24:02
举报
文章被收录于专栏:JMCuiJMCui

1. 安装 Maven

下载地址

2. settings.xml 配置

代码语言:javascript
复制
<?xml version="1.0" encoding="UTF-8"?>

<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
  <pluginGroups></pluginGroups>

  <proxies></proxies>

  <servers>
    <server>
        <id>xxx_release</id>
        <username>Android</username>
        <password>xxx</password>
    </server>
    <server>
        <id>xxx_snapshot</id>
        <username>Android</username>
        <password>xxx</password>
    </server>
  </servers>

  <distributionManagement>
        <repository>
            <id>xxx_release</id> <!--四个id 要保持一致-->
           <url>https://nexus.xxx.city/repository/releases/</url>
        </repository>
        <snapshotRepository>
            <id>xxx_snapshot</id>
            <url>https://nexus.xxx.city/repository/snapshots/</url>
        </snapshotRepository>
  </distributionManagement>

  <mirrors></mirrors>

  <profiles></profiles>
</settings>

3. 执行传包命令

官方文档

代码语言:javascript
复制
mvn deploy:deploy-file 
-Dmaven.test.skip=true
-Dfile=/Users/cui/Downloads/hub-client-all-2022.2.14835.jar
-Dpackaging=jar 
-DgroupId=com.intellij.hub
-DartifactId=hub-client-all
-Dversion=2022.2.14835 
-DrepositoryId=xxx_release 
-Durl=https://nexus.xxx.city/repository/releases/
本文参与 腾讯云自媒体分享计划,分享自作者个人站点/博客。
原始发表:2023-02-03,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体分享计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • 1. 安装 Maven
  • 2. settings.xml 配置
  • 3. 执行传包命令
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档