DevOps: Nexus

Download:

https://download.sonatype.com/nexus/3/latest-unix.tar.gz

Download (sonatype.com)

 

Docker Install:

docker pull sonatype/nexus3
docker volume create --driver local --label app=nexus3 --name nexus-data
docker run -d --name nexus -v nexus-data:/nexus-data -p 8081:8081 -p 8000-8010:8000-8010 sonatype/nexus3
初始密码 /var/lib/docker/volumes/nexus-data/_data/admin.password

 

Repositories

  

maven-central

 

 

 

  

maven-public

 

  

maven-releases

 

 

 maven-snapshots

 

 

  

Docker Repository

 

 

 

 Email

 

 

API:

 

 

    <profile>
      <id>NexusProfile</id>
      <repositories>
        <repository>
          <id>nexus</id>
          <name>Nexus Repository</name>
          <url>http://nexus.4sb2b.cn/repository/maven-public/</url>
          <releases>
            <enabled>true</enabled>
          </releases>
          <!-- snapshot needs to enabled manually -->
          <snapshots>
            <enabled>true</enabled>
          </snapshots>
        </repository>
      </repositories>
    </profile>
    <activeProfiles>
    <!-- only take effect after active -->
      <activeProfile>nexusProfile</activeProfile>
    </activeProfiles>

 

     <mirror>
       <id>nexusMirror</id>
       <mirrorOf>nexus,central</mirrorOf>
       <name>Human Readable Name</name>
       <url>http://nexus.4sb2b.cn/repository/maven-public/</url>
     </mirror>

 

posted @ 2020-09-14 15:28  ascertain  阅读(513)  评论(0编辑  收藏  举报