MAVEN学习笔记之私服Nexus(2)


私有服务器搭建
Nexus www.snatype.org下载
snatype-work 是默认nexus存储nexus a:将bin添加到环境中 Adminisrator path
b:修改java的绝对路径
文件bin\jsw\config\wrapper.config
内容wrapper.java.command=E:\IDE\Java\JDK\bin\java
c:cmd中 nexus install ;nexus start localhost:8081/nexus
login
user:admin
pass:admin123 jqury类网站
http://www.datatables.net/ 2.0 nexus
常用工厂 group hosted hosted 三大工厂
三大工厂简介
mvn:deploy 提交命令
group控制都个工厂
第一种 pom.xml(不推荐)
<repositories>
<repository>
<id>nexus</id>
<name>Nexus Repoitory</name>
<url>http://localhost:8081/nexus/content/groups/public/</url>
<releases>
<enabled>true</enabled>
</releases>
<--!snapshots默认是关闭的需要手动开启!-->
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>
第二种 maven文件走中配置(推荐) 是的所有maven项目使用nexcus
setting.xml
增加如下内容:
<profile>
<id>nexusRepo</id>
<repositories>
<repository>
<id>nexusProfile</id>
<name>Nexus Repoitory</name>
<url>http://localhost:8081/nexus/content/groups/public/</url>
<releases>
<enabled>true</enabled>
</releases>
<--!snapshots默认是关闭的需要手动开启!-->
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>
</profile>
<activeprofiles>
<!--只有激活才生效--!>
<activeprofiles>nexusProfile</activeprofiles>
</activeprofiles> 第三种 配置镜像(更推荐)
<!--工厂的镜像,只要mirrorof中的工厂要访问,都会自动来找镜像,
如果镜像无法访问则不会再访问中央工厂,使用*表示所有的工厂都来这个镜像访问,推荐使用-->
<mirror>
<id>nexusMirror</id>
<mirrorof>*</mirrorof>
<name>Human Readable Name for this Mirror</name>
<url>http://localhost:8081/nexus/content/groups/public/</url>
</mirror> </mirror> <profile>
<repositories>
<repository>
<id>central</id>
<name>central Repoitory</name>
<url>http://*</url>
<layout>default<layout>
<--!snapshots默认是关闭的需要手动开启!-->
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>
</profile> 发布工厂
<distributionManagement>
<repoaitory>
<id>user-release</id>
<name>user release res</name>
<url>http://localhost:8081/nexus/content/repositories/releases/</url>
</repoaitory>
<snapshotRepoaitory>
<id>user-snapshots</id>
<name>user release res</name>
<url>http://localhost:8081/nexus/content/repositories/snapshots/</url>
</snapshotRepoaitory>
</distributionManagement> 需要授权(学习网址http://www.icoolxue.com/play/718)
maven\setting.xml <server>
<id>user-release</id>
<username>deployment</username>
<password>deployment123</password>
</server>
<server>
<id>user-snapshots</id>
<username>deployment</username>
<password>deployment123</password>
</server> </servers> 添加私有工厂
增加hosted是
release
ADD-->ID Name Type
再增加hosted
snapshots
添加权限 release snapshots
name cmsprivilege
all
组织机构管理
a:添加角色
Roles-->Add-->ID NAME ADD(ALL)
b:添加用户
Users-->Add (Nexus User)-->ID Name Activie Add(cms role) 最后修改
setting.xml
pom.xml url

MAVEN学习笔记之私服Nexus(2)的更多相关文章

  1. maven学习记录四——私服 nexus

    8       私服 nexus 安装nexus 启动服务 启动失败的解决方法: 登录nexus 用户名/密码  admin/admin123 仓库类型 Virtual   虚拟仓库 Proxy  代 ...

  2. (转)Maven学习总结(九)——使用Nexus搭建Maven私服

    孤傲苍狼只为成功找方法,不为失败找借口! Maven学习总结(九)——使用Nexus搭建Maven私服 一.搭建nexus私服的目的 为什么要搭建nexus私服,原因很简单,有些公司都不提供外网给项目 ...

  3. Maven学习笔记—仓库

    Maven仓库 1 什么是Maven仓库 在Maven中,任何一个依赖.插件或者项目构建的输出,都可以成为构件,而Maven通常在某个位置统一的存储所有Maven项目共享的构件,这个统一的位置就是Ma ...

  4. Maven学习笔记-03-Eclipse下maven项目在Tomcat7和Jetty6中部署调试

    现在最新的Eclipse Luna Release 已经内置了Maven插件,这让我们的工作简洁了不少,只要把项目直接导入就可以,不用考虑插件什么的问题,但是导入之后的项目既可以部署在Tomcat也可 ...

  5. Maven学习笔记-04-Eclipse下maven项目在Tomcat7和Jetty6中部署调试

    现在最新的Eclipse Luna Release 已经内置了Maven插件,这让我们的工作简洁了不少,只要把项目直接导入就可以,不用考虑插件什么的问题,但是导入之后的项目既可以部署在Tomcat也可 ...

  6. MAVEN学习笔记之Maven插件的应用(4)

    MAVEN学习笔记之Maven插件的应用(4) <build> <pluginManagement> <plugins> <plugin> <gr ...

  7. MAVEN学习笔记之Maven生命周期和插件简介(3)

    MAVEN学习笔记之Maven生命周期和插件简介(3) clean compile site三套生命周期相互独立. clean pre-clean 执行清理前的工作 clean 清理上一次构建生成的所 ...

  8. MAVEN学习笔记之基础(1)

    MAVEN学习笔记之基础(1) 0.0 maven文件结构 pom.xml src main java package resource test java package resource targ ...

  9. Maven 学习笔记(二)

    前面一文——Maven 学习笔记(一)中已经提到了 pom 的大部分配置,Maven 本质上是一个插件框架,它的核心并不执行任何具体的构建任务,所有这些任务都交给创建来完成,每一个任务都会对应一个插件 ...

随机推荐

  1. eas之MrpUI

    package com.kingdee.eas.custom.mrp.client; import java.awt.Component;import java.awt.event.*;import ...

  2. 1.2、使用pip安装Python包

    大多数 Python 包都使用 pip 实用工具安装,使用 virtualenv 创建虚拟环境时会自动安装 pip.激活虚拟环境后,pip 所在的路径会被添加进 PATH. 注:如果你在 Python ...

  3. Vue.js教程—1.介绍和安装

    Vue.js(读音 /vjuː/, 类似于 view) 是一套构建用户界面的渐进式框架.Vue 只关注视图层, 采用自底向上增量开发的设计.Vue 的目标是通过尽可能简单的 API 实现响应的数据绑定 ...

  4. 洛谷 P2813 母舰

    题目描述 在小A的星际大战游戏中,一艘强力的母舰往往决定了一场战争的胜负.一艘母舰的攻击力是普通的MA(Mobile Armor)无法比较的. 对于一艘母舰而言,它是由若干个攻击系统和若干个防御系统组 ...

  5. Android 自己定义TextView 实现文本间距

    转载请标明出处: http://blog.csdn.net/u011974987/article/details/50845269: Android系统中TextView默认显示中文时会比較紧凑.不是 ...

  6. 生成字符Banner

    生成字符Banner http://patorjk.com/software/taag __ _______/ |_ ____ ____ ____ / ___/\ __\/ _ \ / \ / _ \ ...

  7. HDU 5338 ZZX AND PERMUTATIONS 线段树

    pid=5338" target="_blank" style="text-decoration:none; color:rgb(45,125,94); bac ...

  8. 外网联接内网mssql

    參考地址:http://www.nat123.com/Pages_8_266.jsp 方法例如以下: 1.注冊一个账号,同一时候进入nat123官网加入dns域名解析 点击确认保存,刚刚加入的域名解析 ...

  9. 使用Python生成源文件的两种方法

    利用Python的字符串处理模块,开发者能够编写脚本用来生成那些格式同样的C.C++.JAVA源程序.头文件和測试文件,从而避免大量的反复工作. 本文概述两种利用Python string类生成jav ...

  10. RecyclerView的使用(1)之HelloWorld

    原创文章.转载请注明 http://blog.csdn.net/leejizhou/article/details/50670657 RecyclerView是伴随Android 5.0公布的新控件, ...