nexus repo manager quickstart

这篇博客介绍了如何使用Docker在阿里云ECS上快速安装和配置Nexus Repository Manager作为Maven代理服务器。内容包括安装Docker镜像、配置内存、设置密码以及创建Maven代理仓库。

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

nexus repo manager quickstart

nexus 官网
nexus quickstart
nexus 下载地址
nexus docker
as a proxy server for maven and npm builds.
follow each secion to:

  • install nexus repo manager 3
  • run it locally
  • proxy a basic maven

我是后端,我就不管 npm

requirements
  • jdk8
  • maven
part1 install and start it
  1. create an installation directory
  2. download the most recent repository manager

nexus 下不下来,我安装的是 docker 镜像

docker run -d -p 8081:8081 --name nexus -e INSTALL4J_ADD_VM_PARAMS="-Xms1g -Xmx1g" sonatype/nexus3
docker logs -f nexus
docker exec -it nexus bash

我的阿里云 ecs 内存比较小, 配置一下
需要进入 container , cat /nexus-data/admin.password , 复制密码
4. wait until log “Started sonatype nexus”
5. type http://ecs:8081/
6. click sign in
7. complete the step-by-step modal to update your password and set anonymous access3. wait until log “Started sonatype nexus”
8. type http://ecs:8081/
9. click sign in
10. complete the step-by-step modal to update your password and set anonymous access3. wait until log “Started sonatype nexus”
11. type http://ecs:8081/
12. click sign in
13. complete the step-by-step modal to update your password and set anonymous access
我的是: admin admin123

part2 proxying maven components
  1. find this file in .m2/settings.xml
<mirrors>
    <mirror>
        <id>nexus</id>
        <mirrorOf>*</mirrorOf>
        <url>http://localhost:8081/repository/maven-public/</url>
    </mirror>
</mirrors>
  1. click repositories
  2. click create repository and choose the maven2(proxy)
    在这里插入图片描述
    在这里插入图片描述
    http://maven.aliyun.com/nexus/content/groups/public/
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值