Nexus简介及使用IDEA打包上传到Nexus3私服详细教程

nexus

nexus

http://xxxx:port/repository/maven-snapshots/

maven-snapshots

maven-snapshots

http://xxxx:port/repository/maven-snapshots/

复制代码

这里标签中的id对应第一条server中的id ,url取得值可以直接在这里写,也可以如下图中settings文件中的值,name可以自定义 ->settings.xml<-

http://xxxx:port/repository/maven-snapshots/

http://xxxx:port/repository/maven-snapshots/

复制代码

同样,上面pom.xml改成如下格式

nexus

nexus

${altReleaseDeploymentRepository}

maven-snapshots

maven-snapshots

${altSnapshotDeploymentRepository}

复制代码

3.配置上传地址,地址去私服中copy

dev

nexus

http://localhost:8081/nexus/content/groups/public/

true

true

central

Nexus Plugin Repository

http://central

true

true

复制代码

4.其他配置(可忽略)

比如配置阿里的镜像,映射阿里中央仓库(下载jar包快一点)

alimaven

aliyun maven

http://maven.aliyun.com/nexus/content/groups/public/

central

复制代码

配置本地仓库(无需联网使用jar包)

E:\maven_repository

复制代码

5.settings.xml完整配置(来源网络,仅供参考)

<?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”>

D:\mvn_repo\repository

maven-releases

admin

admin123

maven-snapshots

admin

admin123

nexus

admin

admin123

nexus

*

http://192.168.65.129:8081/repository/maven-public/

nexus

central

Nexus

http://central

true

true

central

Nexus Plugin Repository

  • 4
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值