[英]how to force IntelliJ to read local maven repository or download from web when it loses track of dependencies?
I'm using IntelliJ ultimate 2020.1.2.我正在使用 IntelliJ Ultimate 2020.1.2。
When on any reason one of dependency is removed from .m2
or missing, it couldn't recognize the changes and reimport it again.当出于任何原因从
.m2
中删除或丢失一个依赖项时,它无法识别更改并再次重新导入它。
I have already tried with reimports button
but no effect and I think invalidating cashes
may will help but this is not an option for me due to re indexing consumes time.我已经尝试使用
reimports button
但没有效果,我认为invalidating cashes
可能会有所帮助,但这对我来说不是一个选择,因为重新索引会消耗时间。
Is there any other way to set up in IntelliJ or using any command/button
to force IntelliJ to perform reimporting?有没有其他方法可以在 IntelliJ 中设置或使用任何
command/button
强制 IntelliJ 执行重新导入?
As a temporary solution just I used invalidating cashes
and restated IntelliJ.作为一个临时解决方案,我只是使用了
invalidating cashes
并重述了 IntelliJ。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.