构建maven项目时,获取某个jar包,该jar包不在maven中央仓库中,在自己搭建的私服仓库中。本地maven仓库已经存在该jar包,编译时却一直提示,官方maven仓库无法获取到该包。
如下,修改本地maven仓库jar中的_remote.repositories文件进行一些修改即可。具体原因感兴趣的同学可以自行搜索,后续会补充问题的详解。
例如:
#NOTE: This is an Aether internal implementation file, its format can be changed without prior notice.
#Wed Jul 05 17:54:08 CST 2017
umpay-v40.pom>local-nexus=
umpay-v40.jar>local-nexus=
修改为:
#NOTE: This is an Aether internal implementation file, its format can be changed without prior notice.
#Wed Jul 05 17:54:08 CST 2017
umpay-v40.pom>central=
umpay-v40.jar>central=
重新编译即可。
最后
以上就是含蓄早晨最近收集整理的关于mvn编译时绕过本地jar去maven仓库下载问题的全部内容,更多相关mvn编译时绕过本地jar去maven仓库下载问题内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复