首页 > 代码库 > nexus

nexus

配置镜像  都从nexus中进行下载

在setting中

 

技术分享

配置工厂

技术分享

设置工厂后激活

 

 

发布项目

在parent中

<!-- 发布项目的配置 -->
  <distributionManagement>
      <repository>
         <id>user-release</id>
         <name>user release version</name>
         <url>http://localhost:8081/nexus/content/repositories/releases/</url>
         </repository>
      <snapshotRepository>
         <id>user-snapshots</id>
         <name>user snapshots version</name>
         <url>http://localhost:8081/nexus/content/repositories/snapshots/</url>
      </snapshotRepository>
  </distributionManagement>

授权

 

在setting中

<servers>
    <server>
      <id>user-release</id>
      <username>deployment</username>
      <password>deployment123</password>
    </server>
    
    <server>
      <id>user-snapshots</id>
      <username>deployment</username>
      <password>deployment123</password>
    </server>
  </servers>

在nexus中设置权限,角色和用户

 

nexus