linux 搭建 nexus maven私服

目录

环境:

下载

访问百度网盘链接

官网下载

部署 :

 进入目录,创建文件夹,进入文件夹

将安装包放入nexus文件夹,并解压​编辑

启动 nexus,并查看状态.​编辑

更改 nexus 端口为7020,并重新启动,访问虚拟机7020

更换账号密码,浏览器点击 sign in看到提示密码,在/usr/local/nexus/sonatype-work/nexus3/admin.password中,并且复制密码进行登录

登录后输入新密码,选择第二个禁用匿名访问(已翻译)​编辑​编辑​编辑完成后,admin.password 临时密码已被删除maven 资源上传


环境:

必须在 linux 环境下,并且已安装 jdk

下载

  1. 访问百度网盘链接

  2. : https://pan.baidu.com/s/1fHGmQ2jRUAsXyPom2KL8Mw?pwd=0000 提取码: 0000
  3. 官网下载

  4. Download Archives - Repository Manager 3 (sonatype.com)

部署 :

 

 

  1.  进入目录,创建文件夹,进入文件夹

    cd /usr/local/
    mkdir nexus
    cd nexus/
  2. 将安装包放入nexus文件夹,并解压linux 搭建 nexus maven私服_第1张图片

    tar -zxvf nexus-3.25.1-04-unix.tar.gz
  3. 启动 nexus,并查看状态.linux 搭建 nexus maven私服_第2张图片

    /usr/local/nexus/nexus-3.25.1-04/bin
    ./nexus start
     ./nexus status
  4. 更改 nexus 端口为7020,并重新启动,访问虚拟机7020

    vim /usr/local/nexus/sonatype-work/nexus3/etc/nexus.properties

    # Jetty section
     application-port=7020
    # application-host=0.0.0.0
    # nexus-args=${jetty.etc}/jetty.xml,${jetty.etc}/jetty-http.xml,${jetty.etc}/jetty-requestlog.xml
    # nexus-context-path=/
    
    # Nexus section
    # nexus-edition=nexus-pro-edition
    # nexus-features=\
    #  nexus-pro-feature
    
    # nexus.hazelcast.discovery.isEnabled=true
    
    /usr/local/nexus/nexus-3.25.1-04/bin/nexus restart
    

    linux 搭建 nexus maven私服_第3张图片

  5. 更换账号密码,浏览器点击 sign in看到提示密码,在/usr/local/nexus/sonatype-work/nexus3/admin.password中,并且复制密码进行登录

     

     vim /usr/local/nexus/sonatype-work/nexus3/admin.password

    linux 搭建 nexus maven私服_第4张图片

  6. 登录后输入新密码,选择第二个禁用匿名访问(已翻译)
    linux 搭建 nexus maven私服_第5张图片
    linux 搭建 nexus maven私服_第6张图片

    linux 搭建 nexus maven私服_第7张图片

    完成后,admin.password 临时密码已被删除

maven 本地资源上传

  1. 创建仓库,并进行配置创建linux 搭建 nexus maven私服_第8张图片

    linux 搭建 nexus maven私服_第9张图片                                            linux 搭建 nexus maven私服_第10张图片                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 

     

     

  2.  测

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 

 

 

 

 

 

你可能感兴趣的:(maven,java,nexus)