介绍一下背景,项目要迁移进坑人的离线的内网开发,将在同事那编译通过的代码和maven仓库拷进内网,打算编译通过之后再上传私服,结果配好maven之后,本地库中的部分jar包显示没有引入,如下面的波浪线
想到可能是idea提示的不正确,直接编译吧,结果编译失败,主要错误信息如下
[ERROR] Failed to execute goal on project zeus-common-redis: Could not resolve dependencies for project com.hsjry:zeus-common-redis:jar:1.0.0-SNAPSHOT: Cannot access hundsun-nexus (http://10.253.40.200:6060/nexus/content/groups/public) in offline mode and the artifact redis.clients:jedis:jar:2.9.0 has not been downloaded from it before. -> [Help 1]
查看本地仓库,是存在该jar包的
问题出在目录中的多余文件,它们主要包含下载未成功的文件(.lastUpdated),远程仓库的配置信息(_remote.repositories)&