maven 私服 nexus3 settings.xml
文章目录
- 1. 案例配置
- 2. 企业配置
1. 案例配置
<?xml version="1.0" encoding="UTF-8"?><settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd"><pluginGroups></pluginGroups><proxies></proxies><servers><server><id>local-test-release</id><username>admin</username><password>admin</password></server></servers><mirrors><mirror><id>local-test-group</id><name>*</name><url>http://192.168.92.128:8081/repository/local-test-group/</url><!--*指的是访问任何仓库都使用我们的私服--><mirrorOf>*</mirrorOf></mirror></mirrors><profiles><profile><id>nexus</id><repositories><!-- 私有库地址--><repository><id>nexus</id><url>http://192.168.92.128:8081/repository/local-test-group/</url><releases><enabled>true</enabled></releases><snapshots><enabled>true</enabled></snapshots></repository></repositories><pluginRepositories><!--插件库地址--><pluginRepository><id>nexus</id><url>http://192.168.92.128:8081/repository/local-test-group/</url><releases><enabled>true</enabled></releases><snapshots><enabled>true</enabled></snapshots></pluginRepository></pluginRepositories></profile></profiles><activeProfiles><activeProfile>nexus</activeProfile></activeProfiles></settings>
nexus3 settings.xml
2. 企业配置
<?xml version="1.0" encoding="UTF-8"?><settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd"><pluginGroups></pluginGroups><proxies></proxies><servers><server><id>nexus</id><username>admin</username><password>admin123</password></server><server><id>snapshots</id><username>admin</username><password>admin123</password></server></servers><mirrors><mirror><id>nexus</id><name>Nexus myself</name><url>http://192.168.2.161:8081/repository/maven-public/</url><!--*指的是访问任何仓库都使用我们的私服--><mirrorOf>*</mirrorOf></mirror></mirrors><profiles><profile><id>nexus</id><repositories><!-- 私有库地址--><repository><id>nexus</id><url>http://192.168.2.161:8081/repository/maven-public/</url><releases><enabled>true</enabled></releases><snapshots><enabled>true</enabled></snapshots></repository></repositories><pluginRepositories><!--插件库地址--><pluginRepository><id>nexus</id><url>http://192.168.2.161:8081/repository/maven-public/</url><releases><enabled>true</enabled></releases><snapshots><enabled>true</enabled></snapshots></pluginRepository></pluginRepositories></profile></profiles><activeProfiles><activeProfile>nexus</activeProfile></activeProfiles></settings>
maven 私服 nexus3 settings.xml相关推荐
- Maven私服Nexus-3.49.0配置
Maven私服Nexus-3.49.0配置 1. 下载Windows archive版 1.1 官方下载太慢了(需翻墙): 1.2 存了一份123云盘: 2. 解压 2.1 解压后,重命名了去掉了-w ...
- Maven私服Nexus3.x环境构建操作记录
Maven介绍 Apache Maven是一个创新的软件项目管理和综合工具. Maven提供了一个基于项目对象模型(POM)文件的新概念来管理项目的构建,可以从一个中心资料片管理项目构建,报告和文件. ...
- 三、Maven私服nexus3服务器搭建
Maven介绍 Apache Maven是一个创新的软件项目管理和综合工具. Maven提供了一个基于项目对象模型(POM)文件的新概念来管理项目的构建,可以从一个中心资料片管理项目构建,报告和文件. ...
- 使用阿里云的maven私服的setting.xml, 提高maven项目jar下载速度
下载: http://files.cnblogs.com/files/007sx/settings.zip 然后替换自己原本maven的配置文件. 如下载失败,可内容替换: <?xml vers ...
- maven 私服 nexus3 配置,踩坑 , Ready to Connet
maven 私服 nexus3 配置,使用,踩坑(欢迎留言提意见,共同进步) 继续上文docker-compose 搭建 maven 私服 nexus3 笔记 新增一个阿里的仓库 类型 起个名字,配置 ...
- 群晖DS218+做maven私服(nexus3)
背景 本人是个Java工程师,在家里撸代码时台式机.笔记本.虚拟机都可能用来编译构建maven项目,此时如果家里有个maven私服,对构建速度的提升效果是明显的: 纠结 准备一台电脑部署好私服后,是2 ...
- maven私服Nexus3.2的使用
maven搭建私服的步骤: 分三步: 第一步:下载maven的安装包,然后配置好maven的环境变量. 第二步:将maven的私服Nexus安装好,修改maven的配置文件setting.xml问,在 ...
- Idea配置maven,指定settings.xml文件不生效
一.简介 最近单位要求把项目的仓库配置从阿里云改为nexus私服,配置了一个settings-nexus.xml的配置文件,idea的maven配置指定了该settings-nexus.xml文件,发 ...
- Maven基础(三)Maven仓库和settings.xml文件配置
一.Maven仓库的分类 Maven 的工作需要从仓库下载一些 jar 包,如下图所示,本地的项目 A.项目 B 等都会通过 maven软件从远程仓库(可以理解为互联网上的仓库)下载 jar 包并存在 ...
最新文章
- 沙盒化容器:是容器还是虚拟机
- b是python文件二进制打开_如何在Python中打开和显示原始二进制数据?
- 正则表达式匹配不包含特定字符串解决匹配溢出问题
- 安卓实训项目:音乐播放器2.0——实训报告2
- PHP学习笔记(一):理解匿名函数与Closure
- 在CentOS上安装MongoDB
- [重磅] 如何更好地实现服务调用和消息推送
- 开发 自我介绍_对于开发者来说,自我是敌人
- vue 方法获取返回值_vue中子组件怎么获取父组件中的方法的返回值
- R语言-数据整形之简介
- php面试题之一——HTML+CSS(基础部分)
- 微信小程序使用IconFont彩色图标
- NRF24L01故障排查
- 云端软件关闭的原因是什么?
- android 模拟器 安装教程,电脑用安卓模拟器详细安装教程
- vscode输入特殊符号
- 5-8 哈利·波特的考试
- 计算机怎样设置光盘启动项,怎么设置开机启动项-设置光盘启动教程
- Office Tool Plus软件运行错误,缺少.net
- Java String 真的是不可变的吗
热门文章
- “90后梗王”袁隆平:我啊?Handsome!
- 《自然》年度十大人物:天才曹原居首 贺建奎来去匆匆
- 60小时打通Python任督二脉
- jqgrid ajax加载数据,如何通过ajax在jqgrid中加载数据(json)?
- lingo编程的主要方法_java并发编程 --并发问题的根源及主要解决方法
- 【转载保存】Java+Selenium使用
- ERROR: cuda_runtime_api.h: No such file or directory
- 阿里云能耗宝即将发布,助力中小企业绿色升级,参与碳中和万亿市场
- Hologres助力飞猪双11实时数据大屏秒级响应
- 2020年阿里云年中大促【福利】【选品】全攻略