nexus搭建maven私服
来源:互联网 发布:java开源代码论坛 编辑:程序博客网 时间:2024/06/03 18:38
下载安装包nexus-latest-bundle.tar.gz,上传到linux服务器
解压:tar -zxvf nexus-latest-bundle.tar.gz
把解压得到的两个文件夹放到一个新建的文件夹nexus-2.11下:
启动nexus:
cd nexus-2.11.1-01/bin/./nexus start
修改防火墙,打开8081端口,在iptables中添加一行:
-A INPUT -m state –state NEW -m tcp -p tcp –dport 8081 -j ACCEPT
cd /etc/sysconfig/vi iptables
打开浏览器,访问http://服务器ip:8081/nexus
右上角log in,admin/admin123,
1. 添加一个代理仓库:
管理添加的仓库
2.上传第三方jar包
3.本地工程发布到maven私服中,
需要在pom.xml中添加以下配置,再deploy
<!--配置本地工程发布到snapshot、release的路径--> <distributionManagement> <repository> <id>nexus-releases</id> <name>nexus-releases</name> <url>http://192.168.56.101:8900/nexus/content/repositories/releases/</url> </repository> <snapshotRepository> <id>nexus-snapshots</id> <name>nexus-snapshots</name> <url>http://192.168.56.101:8900/nexus/content/repositories/snapshots/</url> </snapshotRepository> </distributionManagement>
参考:
http://www.cnblogs.com/h–d/p/5717920.html
http://blog.csdn.net/sinat_34017357/article/details/51776641
http://blog.csdn.net/qq383264679/article/details/50880003
http://blog.csdn.net/shenshen123jun/article/details/9084293
阅读全文
0 0
- Nexus搭建Maven私服
- Nexus搭建Maven私服
- Nexus搭建Maven私服
- nexus 搭建maven私服
- Maven私服nexus搭建
- 搭建Maven私服 - Nexus
- Nexus搭建Maven私服
- Nexus搭建Maven私服
- Maven 私服nexus搭建
- Nexus搭建Maven私服
- Nexus 搭建Maven 私服
- nexus 搭建 maven 私服
- Nexus搭建Maven私服
- nexus搭建maven私服
- maven搭建nexus私服
- 搭建maven私服nexus
- 搭建maven私服(nexus)
- nexus搭建maven私服
- SpringTaskExecutor介绍
- Mysql多表&JDBC
- nginx发布静态文件 反向代理服务器
- 数据结构学习之-二叉树的定义和存储实现
- Iotivity的编译教程
- nexus搭建maven私服
- HTML <frame> 标签
- js调用java方法
- (搬运).net起步 (构建 T ASP.NET 三层架构实例演示)
- mysql中, varchar(n) n是字符(不区分中文、英文)的个数
- Unity3D高频笔试题
- 把排序数组转化为高度最小的二叉树
- python字符串转日期,日期相加减
- 31STL之优先级队列priority_queue