构建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=
重新编译即可。
版权声明:本文为FU250原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。