Maven私库和本地Maven项目配置
来源:互联网 发布:linux socket编程实例 编辑:程序博客网 时间:2024/06/07 09:02
1、项目私库服务器配置
settting 文件里面的配置
<profiles>
<profile>
<id>nexusProfiles</id>
<repositories>
<repository>
<id>nexus</id>
<name>nexus Repository</name>
<url>http://192.168.45.25:8081/nexus/content/groups/public/</url>
<release>
<enabled>true</enabled> <!-- 是否可以下载release的包 true为空,false为不可以,默认为false-->
</release>
<snapshots>
<enabled>true</enabled> <!-- 是否下载snapshots的包 -->
</snapshots>
</repository>
</repositories>
</profile>
</profiles>
<!-- 只有激活之后才会生效 -->
<activeProfiles>
<activeProfile>nexusProfiles</activeProfile>
</activeProfiles>
2、maven的默认中央仓库配置
apache-maven-3.2.3\lib\maven-model-builder-3.2.3.jar 包里面的 pom-4.0.0.xml文件里,如图
3、maven中央工厂只能有私有仓库访问,需要配置镜像 mirror
<!-- 工厂镜像,只要mirrorOf 的工厂要访问,都会自动来找镜像,
如果镜像无法访问,就不会再去中央工厂访问
-->
<mirror>
<id>nexusMirror</id>
<mirrorOf>nexus,central</mirrorOf> <!-- central 代表中央工厂 https://repo.maven.apache.org/maven2/ , * 表示所有的工厂-->
<name>Human Readable Name for this Mirror.</name>
<url>http://192.168.45.25:8081/nexus/content/groups/public/</url>
</mirror>
配置镜像之后,可以不使用
<!-- 只有激活之后才会生效 -->
<activeProfiles>
<activeProfile>nexusProfiles</activeProfile>
</activeProfiles>
0 0
- Maven私库和本地Maven项目配置
- 本地项目进行Maven配置
- maven配置依赖本地项目
- Maven本地库配置
- maven配置和更新本地库
- Maven本地安装和配置
- Myeclipse的Maven项目配置本地仓库
- Maven本地库目录配置
- 发布本地项目和源码到maven远程库中
- 创建Maven项目和配置
- Maven本地仓库配置和archiva私服搭建
- maven创建本地项目
- Maven私有库和本地库的安装与配置
- Maven私有库和本地库的安装与配置
- Maven私有库和本地库的安装与配置
- Maven私有库和本地库的安装与配置
- Maven 私有库和本地库的安装与配置
- maven远程仓库和本地仓库配置
- OC和Swift混编的配置
- mysql版本区别
- OkHttp学习(2)-->>异步下载图片、文件(拦截器重写Response方法实现下载进度获取)
- maven学习笔记【三】私服Nexus使用
- 这部美版「白银连环杀人案」,早该刷爆朋友圈了
- Maven私库和本地Maven项目配置
- android BuildConfig.DEBUG的妙用
- Redis常用命令
- Windows客户端性能分析与优化入门
- Html笔记
- 我认识的微服务
- SwitchButton自定义开关
- solr6.1 查询优化
- 优化SQL语句