设为首页 加入收藏

TOP

Nexus-在项目中使用Maven私服,Deploy到私服、上传第三方jar包、在项目中使用私服jar包(二)
2019-09-26 11:11:58 】 浏览:115
Tags:Nexus- 项目 使用 Maven 私服 Deploy 上传 第三方 jar
d>nexus</id> <name>Nexus Repository</name> <url>http://192.168.208.134:8081/repository/maven-public/</url> <releases> <enabled>true</enabled> </releases> <snapshots> <enabled>true</enabled> </snapshots> </repository> </repositories> <!-- 私服仓库配置:从私服下载--> <pluginRepositories> <pluginRepository> <id>nexus</id> <name>Nexus Plugin Repository</name> <url>http://192.168.208.134:8081/repository/maven-public/</url> <releases> <enabled>true</enabled> </releases> <snapshots> <enabled>true</enabled> </snapshots> </pluginRepository> </pluginRepositories>

 

为什么是从public进行下载,

因为公共仓库是发行仓库和快照仓库的映射,把两个仓库结合起来。

下面这段代码

<releases>
  <enabled>true</enabled>
</releases>
<snapshots>
  <enabled>true</enabled>
</snapshots>

 

作用是配置是否依赖发行版和是否依赖快照版。

怎样使用私服jar包。

找到要下载的jar包的坐标配置,加入到pom中,那么就会先从私服去找对应的jar包,然后再去官服去找jar包。

 

 

首页 上一页 1 2 下一页 尾页 2/2/2
】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
上一篇程序结构设计理论(Android) 下一篇通俗讲解 RESTful

最新文章

热门文章

Hot 文章

Python

C 语言

C++基础

大数据基础

linux编程基础

C/C++面试题目