linux 搭建maven 私库

参考

https://www.cnblogs.com/dengyulinBlog/p/6398310.html

http://blog.csdn.net/cuker919/article/details/12052565

http://blog.csdn.net/songwei128/article/details/8476307

Maven入门指南⑤:使用Nexus搭建Maven私服 https://www.cnblogs.com/luotaoyeah/p/3791966.html

使用Sonatype Nexus搭建Maven私服后如何添加第三方JAR包? https://www.cnblogs.com/cb0327/p/5395335.html

登录私库后

Maven Nexus OSS 2.xx 教程 http://blog.csdn.net/chenghm123/article/details/53535653?winzoom=1

Maven私库安装与配置  https://www.cnblogs.com/dengyulinBlog/p/6398310.html

nexus私服linux搭建问题  http://blog.csdn.net/cuker919/article/details/12052565

****************************************
WARNING – NOT RECOMMENDED TO RUN AS ROOT
****************************************
If you insist running as root, then set the environment variable RUN_AS_USER=root before running this script.

大概意思就是要在环境配置export RUN_AS_USER=root,临时配置

在系统里面永久配置

vi /etc/profile  加入export RUN_AS_USER=root

==========================

==========================

maven私库, Nexus的一些理解

私库搭建教程, 也有pom与setting设置 (group组会包含 中央仓库) https://blog.csdn.net/qq_39361915/article/details/122561115

type是group时, 代表包含多个仓库
type是proxy时, 代表代理别的仓库
format 现在都是maven2了(maven1可以忽略)

type是proxy时, 与status的关系, Ready to Connect 不能使用    https://blog.csdn.net/weixin_38287709/article/details/105270856

====================

maven配置, setting.xml的一些理解

setting.xml 一般建议在profile标签里配置 仓库组

release

snapshot

镜像部分配置 public 组, 并排除上面2个仓库

插件仓库, 一般参考 public

三方包仓库, 根据情况配置(可选)
https://blog.csdn.net/glpghz/article/details/125509741


阿里的group 是默认包含了, 2个中央仓库(central仓和jcenter仓), 信息来源 https://developer.aliyun.com/mvn/guide

关于pom与setting中的设置    
http://c.biancheng.net/nexus/deployment.html

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值