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. 常用的 CSS 技巧

    1. 黑白图像 这段代码会让你的彩色照片显示为黑白照片,是不是很酷? img.desaturate { filter: grayscale(%); -webkit-filter: grayscale( ...

  2. cocos ios Label组件问题

    软件:cocos creator v1.9.0 开发的过程中,一直在web上预览,Label组件显示一直没问题.在打包到ios上时,出现问题了: Label组件: 当我们缩小字体,发现没问题了,当我们 ...

  3. HLPP算法 一种高效的网络最大流算法

    #include <algorithm> #include <cstdio> #include <cctype> #include <queue> #d ...

  4. CSS学习笔记之选择器

    目录 1.元素选择器 2.继承 3.选择器分组 4.声明分组 5.后代选择器 6.子元素选择器 7.相邻兄弟选择器 8.类选择器 9.ID 选择器 10.属性选择器 11.伪类 12.伪元素 1.元素 ...

  5. vue实现双向绑定mvvm

    剖析Vue实现原理 - 如何实现双向绑定mvvm 本文能帮你做什么?1.了解vue的双向数据绑定原理以及核心代码模块2.缓解好奇心的同时了解如何实现双向绑定为了便于说明原理与实现,本文相关代码主要摘自 ...

  6. vue 对图片进行拖拽到另一个位置

    1.拖动元素代码: 使用html5原生拖拽属性,在需要拖拽的图片中添加draggable="true"属性,并使用v-on添加拖动事件 2.被放置的区域事件代码: 使用html5原 ...

  7. qt的关闭窗口

    .关闭主窗口并退出程序是 QApplication::exit() .如果是QDialog,就accept() 或 reject()在调用窗口中获取相关参数:void MainWindow::on_p ...

  8. QT中tableview不能更新数据,why?

    model->select(); //model->removeColumn(0);++++++++++++++++++++ //model->setHeaderData(model ...

  9. elasticsearch 权威指南搜索阅读笔记(四)

    多索引多type搜索 分页搜索 每页5条 查询一到3页数据 第一页:http://127.0.0.1:9200/blogs2/product/_search?size=5&from=0 第二页 ...

  10. Spring Cloud-hystrix Feign(九)

    前面使用ribbon拦截RestTemplate 实现服务的负载均衡 使用Hystrix进行熔断降级请求缓存  用原生的方式 将会有大量的模板代码,feigin就是rabbon和Histrix的整合 ...