maven学习-settings配置
来源:互联网 发布:TCL波士顿矩阵分析 编辑:程序博客网 时间:2024/05/16 00:48
1.在settings中配置以上内容,意思是,如果需要下载新包先去私库下载,如果私库没有,私库会从中央库下载到私库,然后本地读取私库内容。
<profiles><profile><id>nexusProfile</id><repositories><!-- 私有库地址--><repository><id>nexus</id><url>http://192.168.1.175:8081/nexus/content/groups/public/</url><releases><enabled>true</enabled></releases><snapshots><enabled>true</enabled></snapshots></repository></repositories> </profile></profiles>
2.maven本地仓库路径
<localRepository>D:\Development tools\maven\windows\3.3.9\repository</localRepository>
3.配置权限,使用默认用户
<servers><server><id>nexus-releases</id><username>deployment</username><password>deployment123</password></server><server> <id>nexus-snapshots</id><username>deployment</username><password>deployment123</password></server></servers>
4.覆盖所有路径配置,因为Central(中央工厂)默认的snapshots为false,所以覆盖它
<profiles><profile><id>centralProfile</id><repositories><!-- 私有库地址--><repository><id>central</id><url>http://*</url><releases><enabled>true</enabled></releases><snapshots><enabled>true</enabled></snapshots></repository></repositories> </profile></profiles>5.激活profile
<activeProfiles> <activeProfile>centralProfile</activeProfile></activeProfiles>
6.配置镜像,想load私库或者中央库的jar包,必须经过私库,如果私库没有,私库从中央库load,然后本地库load私库
注明:mirrorOf也可以用*来标识,*标识所有
<mirrors><id>nexusMirrors</id><mirrorOf>nexus,central</mirrorOf><name>Human Readable Name for this Mirror.</name><url>http://192.168.1.175:8081/nexus/content/groups/public/</url></mirrors>
0 0
- maven学习-settings配置
- Maven settings.xml 配置
- maven settings配置
- Maven配置 settings.xml
- Maven settings.xml配置
- maven配置settings.xml
- maven settings.xml配置
- Maven settings.xml配置
- 【Maven】settings配置了解
- 学习笔记——Maven settings.xml 配置详解
- Maven settings配置中的mirrorOf
- Maven配置之settings.xml
- Maven settings.xml 配置详解
- 配置Maven的settings.xml
- Maven配置之settings.xml
- maven的settings.xml配置
- 配置Maven的settings.xml
- Maven settings.xml配置详解
- json之FastJson解析
- Web service的common sense
- Stanford NLP Chinese(中文)的使用
- fatal error: mysql.h: No such file or directory
- Android之AsyncTask两种线程池分析和总结
- maven学习-settings配置
- r语言入门常用函数
- ASP.Net学习笔记001--ASP.Net简介1
- Eclipse 编译StanfordNLP
- 使用CTabView实现多视图(一体多面)
- Stanford CoreNLP开源项目的3种编译和运行方式[1]
- Linux运维01 计划任务
- mysq llimit 优化100万数据
- Oracle学习笔记:图形管理工具 EM 的使用