nexus 3.3.1-Windows本地搭建-及配置

win10,IDE-idea2016
1,首先你需要下载一个

Nuxus官方下载地址

nexus 3.3.1-Windows本地搭建-及配置_第1张图片
Paste_Image.png

点击下载就好

2,到安装目录下面
E:\nexus-3.3.1-01\bin 输入
nexus.exe /run

3,等待安装就好了

E:\sonatype-work\nexus3\etc 这个路径下面 这个nexus.properties可以修改端口
修改下仓库位置F:/nexus/repository
首先 修改maven的配置:
snapshots admin admin123 releases admin admin123
注意这里的id后面要和pom里面的id对应
配置本地的镜像
nexus * http://localhost:8081/repository/maven-public/
和profiles
nexus central http://localhost:8081/repository/maven-public/ true true central http://central true true
最后在profiles后面配置一个启动器
nexus
maven的setting配置完成

接下来就是你自己的pom配置


    
        releases
        Releases
        http://localhost:8081/repository/maven-releases
    
    
        snapshots
        Snapshot
        http://localhost:8081/repository/maven-snapshots
    `

在pom文件开头 记得后面加上jar

接下来就可以上传和下载了-以后每次下载公网的jar,先到私服上,再到本地

你可能感兴趣的:(nexus 3.3.1-Windows本地搭建-及配置)