遇到一个巨坑 跑公司的一个项目,拉下来代码,跑不起来.发现maven一直报这个错 was cached in the local repository,resolution will not be reattempted until the update interval of nexus has elapsed or updates are forced 然后去搜索了一下,基本上原因都说是本地缓存的内容不是最新的.推荐的方式有两种: 1.删除本地缓存的内容,重新导入依赖 2.命令行加 -U参数
使用Maven添加依赖项时(Add Dependency)时,没有提示项目可用,并且在Console中,输出: Unable to update index for central|http://repo1.maven.org/maven2 . 解决方式如下: 1.通过其它方式下载如下两个文件: http://repo1.maven.org/maven2/.index/nexus-maven-repository-index.properties http://repo1.maven.org/m