maven_nexus3私服搭建
【maven_nexus3私服搭建】
# 00.安装环境说明
# (1)Windows7 64位
# (2)JDK1.8 64位
# (3)Sonatype Nexus Repository OSS 3.14
# (4)Apache Maven 3.2.3
# 一、Nexus 下载与安装
# 01.登陆Sonatype Nexus官网,下载Sonatype Nexus Repository OSS(开源社区版)
# 官网地址: https://oss.sonatype.org/
# 02.解压到本地硬盘
# 03.进入 nexus-3.14.0-04-win64/nexus-3.14.0-04/bin目录
# 以管理员身份打开命令行:nexus /install Nexus3 Service
# 该命令将会将Nexus Repository注册成为Windows服务
# 也可以不安装直接启动,命令: nexus /run
# 04.进入windows服务管理页面,启动刚刚注册的Nexus3服务
# 05.等待Nexus Repository程序初始化完成
# 06.打开浏览器,输入 localhost:8081,登录管理界面(安装成功)
# 默认管理员账号为admin,密码为admin123,
# 二、本地 Apache Maven 配置
# 编辑 conf/settings.xml
# 添加私服认证信息和私服镜像信息
<server>
<id>nexus</id>
<username>admin</username>
<password>admin123</password>
<server>
<mirror>
<id>nexus</id>
<mirrotOf>*</mirrotOf>
<url>http://localhost:8081/repository/maven-public/</url>
</mirror>
# 注: server中的id与mirror中的id需要一致
# 三、Nexus 配置文件
# nexus-3.14.0-04-win64/nexus-3.14.0-04/etc/nexus-default.properties
# 四、添加阿里云仓库
# 点击Repositories,右边点击Create repository,在接下来的页面选择“maven2 proxy”。
# 在具体配置页面取名 maven-aliyun-repository
# URL输入:http://maven.aliyun.com/nexus/content/groups/public/ 其他默认值即可。
# 点击maven-public,在Group中,将 maven-aliyun-repository 加到Members中,并排序到首位
# 五、使用 mvn deploy 向 Nexus服务器 上传项目
# 项目中的pom文件添加
<distributionManagement>
<repository>
<id>nexus</id>
<name>Nexus Release Repository</name>
<url>http://localhost:8081/repository/maven-releases/</url>
</repository>
<snapshotRepository>
<id>nexus</id>
<name>Nexus Snapshot Repository</name>
<url>http://localhost:8081/repository/maven-snapshots/</url>
</snapshotRepository>
</distributionManagement>
maven_nexus3私服搭建的更多相关文章
- maven私服搭建
一.软件安装 地址:http://www.sonatype.org/nexus/thank-you-for-downloading/?dl=tgz 解压: 启动: >> nexus sta ...
- maven私服搭建(centOS6.5)
maven的好处和私服的应用本文不赘述,私服搭建如下: MAVEN 私服搭建(centOS 6.5 环境) 1. 准备环境,搭建centOS6.5系统环境,略 2. 准备对应的软件包如下: A. ...
- maven仓库总结,maven私服搭建
配置pom.xml依赖包时在这里找包的描述: http://search.maven.org/#browse 以java为根目录. mvn archtype:generate -DgroupId=zt ...
- Nexus Maven 私服搭建
1.下载Nexus安装文件:http://www.sonatype.org/nexus/go ,目前是nexus-2.13.0-01-bundle.tar.zip这个最新版本: 2.解压到任意目录,我 ...
- git 入门教程之 git 私服搭建教程
git 私服搭建教程 前几节我们的远程仓库使用的是 github 网站,托管项目大多是公开的,如果不想让任何人都能看到就需要收费,而且 github 网站毕竟在国外,访问速度太慢,基于上述两点原因,我 ...
- window Maven私服搭建——nexus
注:本文来源于 <window Maven私服搭建--nexus> Maven私服搭建--nexus 1.下载nexus https://www.sonatype.com/downlo ...
- npm私服搭建
本文是在 centos7 下利用 nexus 搭建 npm 私服的整理 一.安装 JDK 1.下载 JDK 2.安装 tar zxvf jdk-8u191-linux-x64.tar.gz .0_19 ...
- maven 学习笔记--仓库,聚合和继承,私服搭建
仓库 http://blog.csdn.net/wanghantong/article/details/36427433 聚合和继承 http://www.cnblogs.com/xdp-gacl/p ...
- docker私服搭建nexus3
docker私服搭建有官方的registry镜像,也有改版后的NexusOss3.x,因为maven的原因搭建了nexus,所以一并将docker私服也搭建到nexus上. nexus的安装过程就单独 ...
随机推荐
- mysql优化不可不做的事情
写在前面的话:总是在灾难发生后,才想起容灾的重要性:总是在吃过亏后,才记得有人提醒过 设计原则 1.不在数据库做运算:cpu计算务必移至业务层 2.控制单表数据量:单表记录控制在1000w 3.控制列 ...
- HashTable、List、ArrayList的经典使用和相互转换
1.添加引用 using System.Collections; 2.创建并添加数据 Hashtable hs = new Hashtable(); hs.Add("Name1", ...
- Erlang中atom的实现
Erlang的原子(atom)在匹配中有着重要作用,它兼顾了可读性和运行效率. 通过atom,可以实现很多灵活高效的应用. atom可以看作是给字符串生成了一个ID,内部使用的是ID值,必要时可以取出 ...
- 【LeetCode】71. Simplify Path
Simplify Path Given an absolute path for a file (Unix-style), simplify it. For example,path = " ...
- 关于android闹钟,设置定时提醒的一点心得
首先在设置提醒之前你需要一个入口,比如说onclick事件中,在此不做赘述. android中使用闹钟进行提醒其实非常简单,你只需要告知系统你想在什么时候被提醒,然后需要一个闹钟的广播接收器,当到你设 ...
- 《JAVA与模式》之参考资料
1.书籍 <JHead First 设计模式(中文版)> <JAVA与模式> <大话设计模式> 2.连接地址 http://blog.csdn.net/jason0 ...
- Jquery与mootools对比
换了新公司以后就很少使用原生Js来实现界面交互了,而是更多的依赖Jquery. 1.Jquery优点: 良好的一致性$().().xxxxx与强大的DOM api组件可以让一个js菜鸟一周之类立马开发 ...
- PLSQL_通过UTL_MAIL发送并发程式结果报表至用户邮箱(案例)
2014-06-01 Created By BaoXinjian
- Android 布局之LinearLayout 子控件weight权重的作用详析
关于Android开发中的LinearLayout子控件权重android:layout_weigh参数的作用,网上关于其用法有两种截然相反说法: 说法一:值越大,重要性越高,所占用的空间越大: 说法 ...
- Log4Net基本配置
开源日志管理工具,项目主页:http://logging.apache.org/log4net/ 基本用法: 1.程序目录新建目录“Config”,目录内新建文件“log4net.config”,右键 ...