nexus

Nexus Repository Manager 制品仓库

补充说明

nexus 管理 Maven、npm、Docker、PyPI 等制品,支持代理仓库、宿主仓库和仓库组。它基于 Java,生产环境要关注堆内存、blob 存储和清理策略。

常用示例

nexus run
nexus start
nexus stop
curl -u admin:password http://127.0.0.1:8081/service/rest/v1/status
curl -u admin:password http://127.0.0.1:8081/service/rest/v1/repositories
curl -u admin:password -X POST http://127.0.0.1:8081/service/rest/v1/repositories \
  -H 'Content-Type: application/json' \
  -d '{"name":"npm-proxy","format":"npm","type":"proxy","online":true}'

常见配置

# /opt/sonatype-work/nexus3/etc/nexus.properties
nexus-args=${jetty.etc}/jetty.xml,${jetty.etc}/jetty-http.xml
-Djava.io.tmpdir=/opt/sonatype-work/nexus3/tmp

易错点与排错

相关命令