nexus

Posted 永远相信美好的事情即将发生

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了nexus相关的知识,希望对你有一定的参考价值。

<1>将E:\nexus\nexus-2.13.0-01\bin目录添加到path中,cmd-->nexus, 通过nexus install,nexus start,nexus uninstall来

安装,启动和卸载服务

<2>修改bin->jsw->conf->wrapper.conf中jdk的路径.注意不同nexus版本可能适应不同的jdk版本

wrapper.java.command=C:\Program Files (x86)\Java\jdk1.7.0_09\bin\java

<3>配置maven下setting.xml

   <1>添加账户名和密码,在项目通过mvn:deploy命令发布jar到nexus仓库中去需要配置

   <2>配置nexus工厂,profile节点.即项目下载jar时从哪个地址下载jar包.(本地nexus工厂路径)

     本地仓库->nexus工厂->maven中央仓库

    <3>通过配置镜像mirror可统一对所有工厂设置同一个访问路径. 

    <4>mvn deploy时配置:

    <distributionManagement>
           <repository>
                  <id>cms-releases</id>
                  <url>http://localhost:8081/nexus/content/repositories/cms-release/</url>
           </repository>
           <snapshotRepository>
                 <id>cms-snapshots</id>
                 <url>http://localhost:8081/nexus/content/repositories/cms-snapshots/</url>
                  </snapshotRepository>
</distributionManagement>

<4>localhost:8081/nexus配置自定义的工厂,设置权限,用户,角色,用户授权等,这样可以有效解决将项目

上传到自己的工厂中

 <5>注意问题:release版本和snapshots版本的区别

以上是关于nexus的主要内容,如果未能解决你的问题,请参考以下文章

云原生利器 -- Nexus3

centos7 nexus maven私服搭建

4.Docker Compose 部署 Nexus

maven+nuxes将jar自动上传到私有仓库

Linux 搭建 Maven私服Nexus 3.20.1

Linux 搭建 Maven私服Nexus 3.20.1