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的安装过程就单独 ...
随机推荐
- TCP/IP协议(转)
摘自:http://jpkc.nwpu.edu.cn/jp2006/rjjs/work/dzjc/rppt/chap08/08CH0005.HTM TCP/IP(Transmission Contro ...
- 【转】排名前十位的Linux发行版介绍
Linux Distributions众多,据说有350个之多.distrowatch.com网站评出了排名前十位的Linux发行版.它们是:1.Ubuntu,当前最新版本是10.10:2.Fedor ...
- IDEA的maven项目中静态文件编译的路径问题(未测试)
转自:http://www.cnblogs.com/signheart/p/6625126.html IDEA的maven项目中,默认源代码目录下的xml等资源文件并不会在编译的时候一块打包进clas ...
- java容器详细解析(转)
:在java开发中我们肯定会大量的使用集合,在这里我将总结常见的集合类,每个集合类的优点和缺点,以便我们能更好的使用集合.下面我用一幅图来表示 其中淡绿色的表示接口,红色的表示我们经常使用的类. 1: ...
- Python学习笔记015——文件file的常规操作(二进制文件)
有时候诸如图片.音乐等信息不是以文本的形式存储的,而是二进制文件格式存储的. 有时候很多信息不是以文本文件的形式存储的 很多时候,都需要用到二进制读取文件.毕竟很多信息不是以文本的形式存储.例如:图片 ...
- android使用JsonWriter拼json字符串
JsonWriter使用 Example: 拼一个如下的json格式String { [ { "id": 912345678901, ...
- 文件描述符file descriptor与inode的相关知识
每个进程在Linux内核中都有一个task_struct结构体来维护进程相关的 信息,称为进程描述符(Process Descriptor),而在操作系统理论中称为进程控制块 (PCB,Process ...
- 3DSMAX中英文对比大全(从A-Z分类)
A Absolute Mode Transform Type-in绝对坐标方式变换输入 Absolute/Relative Snap Toggle Mode绝对/相对捕捉开关模式 ACIS Optio ...
- VC获得window操作系统版本号, 获取操作系统位数
原文链接: http://www.greensoftcode.net/techntxt/2014315195331643021849 #include <Windows.h>include ...
- (一)RocketMq入门之安装运行
一.几个重要的地址 Git地址:https://github.com/apache/incubator-rocketmq 编译好的文件:https://rocketmq.incubator.apach ...