【Maven】解决本地仓库有,远程仓库没有,导致打包失败的问题

【打包出错信息】

[ERROR]Failure to find org.apache.poi:poi-scratchpad:jar:4.1.1 in http://170.0.41.47:8081/repository/maven-public/ was cached in the local repository,resolution will not be reattempted until the update interval of bigdata-nexus3 has elapsed or updates are forced->[Help 1] [ERROR]

【原因】

原因是maven3.x版本在从远程仓库下载资源后,会生成对应的_remote.repositories文件,标示该资源的来源,如果你有这个文件_remote.repositories,那就不会访问本地了,必须远程上有才行,否则就会报错。

【解决方案】

将_remote.repositories文件删除。

【参考资料】

https://blog.csdn.net/qq_36205206/article/details/108487403

END

 

posted @ 2022-03-02 11:27  逆火狂飙  阅读(2303)  评论(0)    收藏  举报
生当作人杰 死亦为鬼雄 至今思项羽 不肯过江东