【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

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM