博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
maven私服搭建
阅读量:4581 次
发布时间:2019-06-09

本文共 2982 字,大约阅读时间需要 9 分钟。

一、软件安装

  地址:http://www.sonatype.org/nexus/thank-you-for-downloading/?dl=tgz

  解压:

    

      启动:

     >> nexus start

  打开:http://192.9.104.17:8081/nexus/#welcome

     

   点击右上角,使用admin/admin123(默认管理员)登陆。

   管理操作面板(修改代码库、镜像、用户权限管理等):

     

     

二、系统配置

  默认的nexus 配置的镜像是无法使用的,需要我们把它设置为可行的,重新构建索引。

           

  重新构建索引:

    

  需要修改的仓库有三处:Central、Apache Snapshots、Codehaus Snapshots

  另外,releases和snapshots两处的可以自动部署属性必须勾上,如下图:

    

  当然,你也可以通过界面来上传jar包。

    

三、maven环境配置

  1、确保你的环境中已经部署和正确配置了maven环境,具体如果安装maven不在此教程范畴之内。

  2、到你当前登录的用户下的.m2目录下,创建一个setting.xml,内容如下:

    

snapshots
likehua
likehua
releases
likehua
likehua
tomcat-remote-deploy
tomcat
tomcat123
nexus
*
A Local Nexus Server
http://192.9.104.17:8081/nexus/content/groups/public/
nexus
true
true
nexus
Repository for Local Nexus Server
http://central
default
true
true
nexus
Plugin Repository for Local Nexus Server
http://central

     主要注意修改:servers和mirrors两处,如本例所示:

  servers:

  

snapshots
likehua
likehua
releases
likehua
likehua
tomcat-remote-deploy
tomcat
tomcat123

   注意此处的用户名和密码,是你nexus上创建的用户名,一般付给部署的权限。

  另外就是镜像地址的配置:

       

1   
2
14
15
nexus
16
*
17
A Local Nexus Server
18
http://192.9.104.17:8081/nexus/content/groups/public/
19
20

     ok,maven私服搭建配置完成。

转载于:https://www.cnblogs.com/likehua/p/4552620.html

你可能感兴趣的文章
hdu 4063 Aircraft 计算几何+最短路
查看>>
MongoDB学习笔记——MongoDB 连接配置
查看>>
算法面试:精选微软等公司经典的算法面试100题 第26-35题
查看>>
WCF 消息压缩性能问题及解决方法
查看>>
平时二测
查看>>
python之字符编码
查看>>
View 的measure 和onMeasure
查看>>
mysql笔记02 创建高性能的索引
查看>>
国外免费空间
查看>>
构建linux内核树
查看>>
Linux C 信号处理
查看>>
第三次作业
查看>>
tomcat
查看>>
MUI开发注意事项
查看>>
elasticsearch摸石头过河——常用数据类型(二)
查看>>
scrum立会报告+燃尽图(第三周第三次)
查看>>
[SQL] 获取 Microsoft SQL Server 2008 的数据表结构
查看>>
iOS进度指示器——NSProgress
查看>>
C语言strcat,ctrcpy函数原型和改进
查看>>
good bye 2015 B - New Year and Old Property
查看>>