nexus OSS

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
# docker
docker run \
-d \
--name nexus \
-p 30081:8081 \
-p 30083:8083 \
-v /etc/localtime:/etc/localtime:ro \
-v nexus-data:/nexus-data \
-e INSTALL4J_ADD_VM_PARAMS="-Xms128m -Xmx512m -XX:MaxDirectMemorySize=256m" \
sonatype/nexus3:3.65.0

# podman
podman run \
-d \
--name nexus \
-p 30081:8081 \
-p 30083:8083 \
-v /etc/localtime:/etc/localtime:ro \
-v nexus-data:/nexus-data \
-e INSTALL4J_ADD_VM_PARAMS=-Xms128m -Xmx256m -XX:MaxDirectMemorySize=256m \
sonatype/nexus3:3.39.0

config

default username/password=admin/admin123

Blob Stores/Enable Soft Quota: 限制目录大小

download nexus-2.14.0-01-bundle.zip

unzip and execute ./bin/nexus start

add aliyun repo as proxy repository

repository id: aliyun_repo

repository name: aliyun_repo

provider Maven2

Repository Policy: Release

Remote Storage location: http://maven.aliyun.com/nexus/content/groups/public/

click save

upload 3rd party jar

3rd party>Artifact Upload

GAV Definition:GAV Parameters

Group:xxx

Artifact:xxx

Version:xxx

Packaging:

error: wrapper | OpenSCManager failed – Access is denied.

click on start

click “All Programs”

click on accessories

right click on “Command Prompt” icon

click “properties”

click on the “shortcut” tab on the top

click the advanced button at the bottom

click on the check box that says “Run as Administrator”.

click OK

上传 jar 包

上传 pom

选择pom文件,扩展名填写 “pom”

包路径 和版本信息会从pom自动读取。

点击上传按钮