MAVEN学习笔记之私服Nexus(2)
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)的更多相关文章
- maven学习记录四——私服 nexus
8 私服 nexus 安装nexus 启动服务 启动失败的解决方法: 登录nexus 用户名/密码 admin/admin123 仓库类型 Virtual 虚拟仓库 Proxy 代 ...
- (转)Maven学习总结(九)——使用Nexus搭建Maven私服
孤傲苍狼只为成功找方法,不为失败找借口! Maven学习总结(九)——使用Nexus搭建Maven私服 一.搭建nexus私服的目的 为什么要搭建nexus私服,原因很简单,有些公司都不提供外网给项目 ...
- Maven学习笔记—仓库
Maven仓库 1 什么是Maven仓库 在Maven中,任何一个依赖.插件或者项目构建的输出,都可以成为构件,而Maven通常在某个位置统一的存储所有Maven项目共享的构件,这个统一的位置就是Ma ...
- Maven学习笔记-03-Eclipse下maven项目在Tomcat7和Jetty6中部署调试
现在最新的Eclipse Luna Release 已经内置了Maven插件,这让我们的工作简洁了不少,只要把项目直接导入就可以,不用考虑插件什么的问题,但是导入之后的项目既可以部署在Tomcat也可 ...
- Maven学习笔记-04-Eclipse下maven项目在Tomcat7和Jetty6中部署调试
现在最新的Eclipse Luna Release 已经内置了Maven插件,这让我们的工作简洁了不少,只要把项目直接导入就可以,不用考虑插件什么的问题,但是导入之后的项目既可以部署在Tomcat也可 ...
- MAVEN学习笔记之Maven插件的应用(4)
MAVEN学习笔记之Maven插件的应用(4) <build> <pluginManagement> <plugins> <plugin> <gr ...
- MAVEN学习笔记之Maven生命周期和插件简介(3)
MAVEN学习笔记之Maven生命周期和插件简介(3) clean compile site三套生命周期相互独立. clean pre-clean 执行清理前的工作 clean 清理上一次构建生成的所 ...
- MAVEN学习笔记之基础(1)
MAVEN学习笔记之基础(1) 0.0 maven文件结构 pom.xml src main java package resource test java package resource targ ...
- Maven 学习笔记(二)
前面一文——Maven 学习笔记(一)中已经提到了 pom 的大部分配置,Maven 本质上是一个插件框架,它的核心并不执行任何具体的构建任务,所有这些任务都交给创建来完成,每一个任务都会对应一个插件 ...
随机推荐
- 团体程序设计天梯赛-练习集-L1-035. 情人节
L1-035. 情人节 以上是朋友圈中一奇葩贴:“2月14情人节了,我决定造福大家.第2个赞和第14个赞的,我介绍你俩认识…………咱三吃饭…你俩请…”.现给出此贴下点赞的朋友名单,请你找出那两位要请客 ...
- Linux删除大于/小于固定大小的文件等
删除目录下大小为0的文件 rm -f 删除当前目录下面所有 test 文件夹下面的文件 find ./ -name "test" -type d -exec rm -rf {} ; ...
- python PIL图像处理-生成图片验证码
生成效果如图: 代码 from PIL import Image,ImageDraw,ImageFont,ImageFilter import random # 打开一个jpg图像文件: im = I ...
- DOM学习之图片库切换效果
addloadevent(prepareplaceholder()) addloadevent(prepareGallery()) //页面加载完时执行函数 function addloadevent ...
- Linux系统学习之 二:新手必须掌握的Linux命令2
2018-10-03 22:20:48 一.文件目录管理命令 1.touch 命令 用于创建空白文件或设置文件的时间,格式为“touch [选项] [文件]”. 参数: -a :仅修改“读取时间(at ...
- 07.网络编程-4.HTTP
HTTP是一种无状态的协议,无状态是指Web浏览器和Web服务器之间不需要建立持久的连接,这意味着当一个客户端向服务器端发出请求,然后Web服务器返回响应(response),连接就被关闭了,在服务器 ...
- python爬虫07 | 有了 BeautifulSoup ,妈妈再也不用担心我的正则表达式了
我们上次做了 你的第一个爬虫,爬取当当网 Top 500 本五星好评书籍 有些朋友觉得 利用正则表达式去提取信息 太特么麻烦了 有没有什么别的方式 更方便过滤我们想要的内容啊 emmmm 你还别说 还 ...
- python爬虫05 | 年轻人,不会正则表达式你睡得着觉?有点出息没有?
现在 你已经会使用 python 模拟浏览器 进行一些 Http 的请求了 那么请求完之后 服务器返回给我们一堆源代码 我们可不是啥都要的啊 我们是有原则的 我们想要的东西 怎么能一股脑的啥都往自己兜 ...
- SBC37x交叉编译平台QT+OPENCV
一.构建交叉编译器 [随机手册]Angstrom是一个界面友好的嵌入式发行版本,用亍手持设备,机顶盒和网络存储设备等嵌入式设备. 光盘的文件系统是定制的The Angstrom Distributio ...
- 【例题4-3 uva 133】The Dole Queue
[链接] 我是链接,点我呀:) [题意] 在这里输入题意 [题解] 写个数组模拟链表 但注意,得用个辅助数组flag.. 不然可能会出现没能跳过中间的被占区域的情况. 比如 1 2 idx # # # ...