【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私服搭建的更多相关文章

  1. maven私服搭建

    一.软件安装 地址:http://www.sonatype.org/nexus/thank-you-for-downloading/?dl=tgz 解压: 启动: >> nexus sta ...

  2. maven私服搭建(centOS6.5)

    maven的好处和私服的应用本文不赘述,私服搭建如下: MAVEN 私服搭建(centOS 6.5 环境) 1.  准备环境,搭建centOS6.5系统环境,略 2.  准备对应的软件包如下: A. ...

  3. maven仓库总结,maven私服搭建

    配置pom.xml依赖包时在这里找包的描述: http://search.maven.org/#browse 以java为根目录. mvn archtype:generate -DgroupId=zt ...

  4. Nexus Maven 私服搭建

    1.下载Nexus安装文件:http://www.sonatype.org/nexus/go ,目前是nexus-2.13.0-01-bundle.tar.zip这个最新版本: 2.解压到任意目录,我 ...

  5. git 入门教程之 git 私服搭建教程

    git 私服搭建教程 前几节我们的远程仓库使用的是 github 网站,托管项目大多是公开的,如果不想让任何人都能看到就需要收费,而且 github 网站毕竟在国外,访问速度太慢,基于上述两点原因,我 ...

  6. window Maven私服搭建——nexus

    注:本文来源于 <window   Maven私服搭建--nexus> Maven私服搭建--nexus 1.下载nexus https://www.sonatype.com/downlo ...

  7. npm私服搭建

    本文是在 centos7 下利用 nexus 搭建 npm 私服的整理 一.安装 JDK 1.下载 JDK 2.安装 tar zxvf jdk-8u191-linux-x64.tar.gz .0_19 ...

  8. maven 学习笔记--仓库,聚合和继承,私服搭建

    仓库 http://blog.csdn.net/wanghantong/article/details/36427433 聚合和继承 http://www.cnblogs.com/xdp-gacl/p ...

  9. docker私服搭建nexus3

    docker私服搭建有官方的registry镜像,也有改版后的NexusOss3.x,因为maven的原因搭建了nexus,所以一并将docker私服也搭建到nexus上. nexus的安装过程就单独 ...

随机推荐

  1. [转载]在rhel 6 x86_64 上安装oracle 11g xe

    原文地址:在rhel 6 x86_64 上安装oracle 11g xe作者:pccom Oracle 11g xe for linux目前只有x86_64 版本,没有i386, i686 版本,如果 ...

  2. cxf之org.xml.sax.SAXParseException; lineNumber: 7; columnNumber: 37; cvc-complex-type.2.4.c: 通配符的匹配很全面, 但无法找到元素 'jaxws:server' 的声明。

    <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.sp ...

  3. HDUOJ 1099——Lottery

    Lottery Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others) Total Su ...

  4. InteliJ Idea通过maven创建webapp

    facet是IDE给工程添加的属性,在使用maven时一定不能使用facet 一.创建maven项目,选定webapp作为archtype,这样就会自动生成webapp目录 如果没有给maven设置代 ...

  5. 【js】js中的||和&&

    逻辑与&&和逻辑或||操作符可以应用于任何类型的操作数,而不仅仅是布尔值. 几乎所有语言中||和&&都遵循“短路”原理, 如&&中第一个表达式为假就不会 ...

  6. python学习笔记——multiprocessing 多进程组件 进程池Pool

    1 进程池Pool基本概述 在使用Python进行系统管理时,特别是同时操作多个文件目录或者远程控制多台主机,并行操作可以节约大量时间,如果操作的对象数目不大时,还可以直接适用Process类动态生成 ...

  7. go 学习 ---数据类型

    25个关键字 程序声明:import, package 程序实体声明和定义:chan, const, func, interface, map, struct, type, var 程序流程控制:go ...

  8. unity 在Game视图中显示Gizmos

    自己画的Gizmos要想在Game视图中能看到,需要把Game视图窗口右上角的"Gizmos"按钮点下去.如图: 比如,下面代码以角色的capsuleCollider中心为中心画一 ...

  9. SQL中的LIKE中用参数化查询

    今天终于学会怎么在like中用参数化查询啦..哈哈..再也不用担心sql注入了...  

  10. Class.getResourceAsStream和ClassLoader.getResourceAsStream方法

    项目中,有时候要读取当前classpath下的一些配置文件,下面介绍下Class.getResourceAsStream和ClassLoader.getResourceAsStream两种方法以及两者 ...