nexus界面操作

本文详细介绍如何在Nexus中创建第三方Maven仓库,包括设置仓库类型、权限控制及部署角色,同时指导如何上传jar包至自定义仓库,适合初学者快速上手。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Repository

创建thirdparty(第三方仓库)

repository | repositories | create repository | maven2(hosted) 进入创建仓库界面:

name 填写 thirdparty

# 验证所有路径都是maven工件或元数据路径
Validate that all paths are maven artifact or metadata paths 
选permissive,所有选项如下:
strict 严格模式
permissive 许可模式

# 是否允许重新部署
Controls if deployments of and updates to artifacts are allowed
选allow redeploy,所有选项如下:
allow redeploy
disabled redeploy
read-only

点create repository,完成。

Security

Security模块主要是安全相关,如权限,角色,用户等.。

禁用匿名账户

security | anonymous access | 取消勾选 Allow anonymous users to access the server

创建deployment角色

security | role | create role 进入创建页面,
role id和role name填写如下:

deployment
deployment

provileges权限选择如下:

nx-component-upload  # 上传
nx-repository-view-maven2-*-* # view-maven2的所有操作项
# nx-repository-view-maven2-*-* 相当于如下4项都选
# nx-repository-view-maven2-*-add
# nx-repository-view-maven2-*-edit
# nx-repository-view-maven2-*-read
# nx-repository-view-maven2-*-browse

点击create role,完成。

创建用户

上传jar包到第三方仓库

这里以fastjson为例:

<!-- https://mvnrepository.com/artifact/com.alibaba/fastjson -->
<dependency>
    <groupId>com.alibaba</groupId>
    <artifactId>fastjson</artifactId>
    <version>1.2.62</version>
</dependency>

browse | 点选thirdparty仓库 | 点upload component进入上传界面:

点browse打开文件浏览器,找到需上传的jar包
groupId,artifactId,version填写对应的值

点upload,完成。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值