随记-上传本地jar包到私服Nexus步骤

项目用到一些不是公用的依赖,需要上传到自己的私服中,方便使用

在jar所在目录通过黑窗口上传到私服

在这里插入图片描述

mvn deploy:deploy-file -Dfile=C:\Users\if\common-1.0.0-SNAPSHOT.jar -DgroupId=com.pitaya -DartifactId=common -Dversion=1.0.2 -Dpackaging=jar -Durl=http:/0.0.0:80/repository/micrepo/ -DrepositoryId=xxid

在这里插入图片描述

参数说明:

-Dfile jar包路径
-DgroupId pom依赖对应的groupId
-DartifactId pom依赖对应的artifactId
-Dpackaging jar包形式
-Durl 上传私服仓库地址
-DrepositoryId 私服对应的仓库id

![在这里插入图片描述](https://img-blog.csdnimg.cn/15879563031d4fb09de5ed8e2dd2b2c0.png

然后到私服仓库查看

在这里插入图片描述

项目需要这些jar包就配置私服地址即可

		<repository>
            <id>xxit</id>
            <url>http://0.0.0:80/repository/micrepo/</url>
            <releases>
                <enabled>true</enabled>
            </releases>
            <snapshots>
                <enabled>true</enabled>
            </snapshots>
        </repository>
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值