从零开始搭建系统2.1——Nexus安装及配置
在安装配置Nexus时,请先确定您已经配置好jdk
1.创建目录
2.下载安装包
[root@localhost usr]# cd nexus
下载地址:https://www.sonatype.com/download-oss-sonatype
wget https://sonatype-download.global.ssl.fastly.net/repository/repositoryManager/3/nexus-3.9.0-01-unix.tar.gz
3.解压安装包
tar -zxvf nexus-3.9.0-01-unix.tar.gz
解压之后生成两个文件夹,分别为nexus-2.3.1-01、sonatype-work
4.启动
进入到bin目录下,执行./nexus start
解决上面的提示:
创建nexus用户
groupadd nexus#创建组
useradd nexus -g nexus#创建用户并将用户添加到组
#修改文件所有者
chown -R nexus /usr/nexus/
修改 nexus 脚本,指定启动用户
5.开启8081端口
添加
5.验证是否启动成功
http://192.168.0.200:8081
出现上述页面,说明配置nexus成功!
点击右上角“Log in”, 输入用户名和密码(默认用户名:admin 密码: admin123)登录。
sudo ln -s /usr/nexus/nexus-3.9.0-01/bin/nexus /etc/init.d/nexus
使用
service nexus status/start/stop
查看nexus服务状态、启动服务、停止服务等
使用
chkconfig nexus on/off
设置nexus服务开机自启动或者开机不启动
如果启动不起来的话可以用下面方式启动,通过启动日志查找问题
service nexus start-launchd
7.配置nexus
新建store
8.proxy私仓,使用的外部私仓是阿里的仓库http://maven.aliyun.com/nexus/content/groups/public:
9.release私仓
10.snapshot私仓
11.group私仓组
12.如何在项目中使用
settings.xml 配置
<?xml version="1.0" encoding="UTF-8"?>
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
<localRepository>D:\.m2\repository</localRepository>
<pluginGroups>
<pluginGroup>org.sonatype.plugins</pluginGroup>
</pluginGroups>
<proxies>
</proxies>
<servers>
<server>
<id>Releases</id>
<username>admin</username>
<password>admin123</password>
</server>
<server>
<id>Snapshots</id>
<username>admin</username>
<password>admin123</password>
</server>
</servers>
<mirrors>
<mirror>
<id>nexus</id>
<mirrorOf>*</mirrorOf>
<url>http://192.168.0.200:8081/repository/nexus-public/</url>
</mirror>
</mirrors>
<profiles>
<profile>
<id>nexus</id>
<repositories>
<repository>
<id>central</id>
<url>http://central</url>
<releases><enabled>true</enabled></releases>
<snapshots><enabled>true</enabled></snapshots>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>central</id>
<url>http://central</url>
<releases><enabled>true</enabled></releases>
<snapshots><enabled>true</enabled></snapshots>
</pluginRepository>
</pluginRepositories>
</profile>
</profiles>
<activeProfiles>
<activeProfile>nexus</activeProfile>
</activeProfiles>
</settings>
项目pom配置
<distributionManagement>
<repository>
<id>Releases</id>
<name>Releases</name>
<url>http://192.168.0.200:8081/repository/nexus-releases</url>
</repository>
<snapshotRepository>
<id>Snapshots</id>
<name>Snapshots</name>
<url>http://192.168.0.200:8081/repository/nexus-snapshots</url>
</snapshotRepository>
</distributionManagement>
13.直接deploy即可
14.设置可重复deploy
如果需要可重复deploy同一个版本的jar包,可进行如下配置
转载于:https://www.cnblogs.com/provence666/p/8638558.html
从零开始搭建系统2.1——Nexus安装及配置相关推荐
- 从零开始搭建系统2.4——Jenkins安装及配置
1.安装 wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins.io/redhat-stable/jenkins.repo rpm --im ...
- mysql 1.4安装步骤_从零开始搭建系统1.4——MySql安装及配置
安装环境:CentOS7 64位 ,安装MySQL5.7 1.创建mysql目录 # 下载mysql源安装包 shell> wget http://dev.mysql.com/get/mysql ...
- 从零开始搭建系统1.1——CentOs安装
本篇主要是记录安装CentOs的过程,为什么会选择CentOs,没有过多的原因,主要是出于CentOs相对来说安装的人比较多, 以后有问题了方便查资料.本次安装是安装在一台笔记本上,WIN7+Cent ...
- 从零开始搭建系统3.2——微服务注册中心开发及部署
从零开始搭建系统3.2--微服务注册中心开发及部署 转载于:https://www.cnblogs.com/provence666/p/8638586.html
- 软件配置 | ios系统Clion下载、安装、配置环境
软件配置 软件配置 | ios系统Clion下载.安装.配置环境 软件配置 下载.安装 g++ Clion 调试 参考链接 下载.安装 调试 本文总结ios系统下Clion下载.安装.配置环境过程和可 ...
- Window系统上的Nacos安装与配置
Window系统上的Nacos安装与配置 下载 nacos下载github地址:https://github.com/alibaba/nacos/releases 下拉找到Assets 解压 各文件夹 ...
- Linux系统中OpenSSH的安装和配置(转)
Linux系统中OpenSSH的安装和配置(转) 概述 许多网络程序,如telnet.rsh.rlogin或rexec,用明文(plain text)传送口令和秘密的信息,所以就可利用任何连接到网络上 ...
- Linux系统下禅道的安装以及配置教程
Linux系统下禅道的安装以及配置教程 首先查看Linux安装的版本,64的还是32的! 查看Linux版本:[root@localhost ~]# getconf LONG_BIT 1.Linux中 ...
- 从零开始安装搭建win10与ubuntu20.04双系统开发环境——集安装、配置、软件、美化、常见问题等于一体的——超详细教程
文章目录 **前言 ** 关于系统安装配置与软件安装 一.Win10安装ubuntu20.04双系统 1.按照自己的需求分区 2.配置软件镜像源 软件包管理工具介绍 更换APT源--使用国内镜像 3. ...
最新文章
- 盘一盘 2021 年程序员们喜欢的网站数据
- HTML5 手机端动态适配
- 第 5 章 第二个 activity
- ID3的REP(Reduced Error Pruning)剪枝代码详细解释+周志华《机器学习》决策树图4.5、图4.6、图4.7绘制
- 深入了解React组件重新渲染的条件和生命周期
- 到底死不死我就请了七天假_“你到底死不死?我只请了7天假”
- [AH/HNOI2017]大佬
- 网络:常见的端口号及分类
- 攀爬者(洛谷P5143题题解,Java语言描述)
- 无法获得 VMCI 驱动程序的版本: 句柄无效。 驱动程序“vmci.sys”的版本不正确。请尝试重新安装 VMware Workstation。 开启模块 DevicePowerOn 的操作失败
- BZOJ 2716: [Violet 3]天使玩偶 | CDQ分治
- 【报告分享】2019-2020广告主KOL营销市场盘点及趋势预测.pdf(附下载链接)
- h2 sync mysql_solo 从 h2 迁移到 mysql
- 微软.Net RIA Services项目前景简评
- java程序员语录_2019精选java程序员语录大全
- python+django+mysql校园二手书交易系统毕业设计毕设开题报告
- 代码签名证书有哪些产品
- 腾讯云从业者认证考试(学习笔记知识总结-全部章节)
- 2021.11.10 - 145.提莫攻击
- android实现对PDF进行签名、涂鸦操作
热门文章
- C++内存管理与内存泄漏及其检测
- CentOS 7实战Kubernetes部署
- 给ADAS泼冷水?不,是客观评价
- 港中大教授研发DeepID人脸识别技术 准确率超99%
- 关于html的a标签的target=__blank 的安全漏洞问题
- Android自定义波浪加载圆形进度条——(自定义控件 一)
- http://www.cnblogs.com/qtqq/p/5271164.html
- [转载] 中华典故故事(孙刚)——21 正月剪头死舅舅
- es5 - array - concat
- Ubuntu 11.04解决txt文档中文乱码方法