linux上搭建maven+nexus私人仓库
来源:互联网 发布:数据灾备技术 编辑:程序博客网 时间:2024/06/09 19:42
1.安装maven
(1)将下载好的apache-maven-3.0.5-bin.tar.gz包,用FTP工具传至服务器上。
(2)在/usr/local/ 下新建maven3目录
在该目录中解压:tar -zvxf apache-maven-3.0.5-bin.tar.gz
(3)配置环境变量:vim /etc/profile
加入:export MAVEN_HOME=/usr/local/apache-maven-3.3.9 export PATH=$PATH:$MAVEN_HOME/bin
(4)让系统重新执行下/etc/profile,命令
(5)检验maven是否安装成功
mvn -version
2.安装nexus
(1)下载地址:http://www.sonatype.org/nexus/go/
(2)在/usr/local/下新建nexus目录
将nexus-2.11.2-03-bundle.tar.gz移到该目录中, 解压:tar -zxvf nexus-2.11.2-03-bundle.tar.gz 解压后出现两个文件:nexus-2.11.2-03 sonatype-work
(3)可以配置访问nexus端口:
在nexus.properties文件中(该文件位于nexus-2.11.2-03/conf/),默认为8081端口。
(4)配置nexus配置文件
切换到目录:/nexus/nexus-2.11.2-03/bin/下, 打开文件nexus,vim nexus NEXUS_HOME=".." 改为(不修改默认也可以): NEXUS_HOME="nexus安装目录" RUN_AS_USER= 改为: RUN_AS_USER=root
(5)打开linux系统8081端口:
firewall-cmd –add-port=8020/tcp –permanent重启防火墙:systemctl stop firewalld
(6)启动nexus:
切换目录:cd /usr/local/nexus/nexus-2.11.2-03/bin/启动:./nexux start
(7)浏览器访问地址:
http://ip地址:8081/nexus登录,默认用户名 admin 默认密码 admin123到此,Nexus 已安装完成。
(8)加入jar包到私人库:
本文参考:http://www.linuxidc.com/Linux/2016-11/136954.htm
4 0
- linux上搭建maven+nexus私人仓库
- Nexus 搭建 Maven 仓库
- Maven-----搭建Nexus仓库
- Nexus私人仓库和Maven网络上的一些错误的解决办法,进行修正
- Sonatype Nexus搭建Maven仓库
- Maven仓库搭建--nexus私服
- 使用Nexus搭建Maven仓库
- Nexus 搭建maven 私有仓库
- Sonatype Nexus 搭建Maven仓库
- Nexus搭建Maven私有仓库
- Nexus搭建Maven私有仓库
- nexus 搭建maven本地仓库
- Nexus搭建私有maven仓库
- Nexus 搭建maven 私有仓库
- Linux下搭建maven-nexus私服仓库
- 【Maven】搭建Nexus Maven私有仓库
- maven仓库搭建-Nexus入门指南
- 使用Nexus搭建Maven代理仓库
- JS 伪继承 prototype
- java中String和数组的长度
- android五大布局
- 1022. D进制的A+B (20)
- 还不算太迟吧
- linux上搭建maven+nexus私人仓库
- 类型模板形参
- JS 对象复制Object.assign和Object.create
- 我说这博客不能换个名字嘛
- Android Studio出现Failed to open zip file问题的解决方法
- Python自定义函数的创建、调用和函数的参数详解
- mfc读写串口的数据
- 面试-大量数据的解决办法
- JS 删除操作 delete