简体   繁体   English

如何强制 IntelliJ 在失去依赖关系时读取本地 maven 存储库或从 web 下载?

[英]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.

相关问题 如何仅从pom.xml而不是从Maven本身将Maven依赖项下载到本地存储库中 - How to download Maven dependencies into a local repository, only from pom.xml, not from Maven itself 如何在IntelliJ中强制Maven从本地.m2存储库中提取特定依赖项 - How to force Maven in IntelliJ to pull specific dependency from local .m2 repository 如何直接从 Maven 存储库下载包含所有依赖项的 jar? - How to download a jar with all the dependencies directly from a maven repository? 如何从 gradle 中的 maven 本地存储库安装依赖项? - how to install dependencies from maven local repository in gradle? 如何强制 IntelliJ 使用 Maven 下载 javadocs? - How to force IntelliJ to download javadocs with Maven? 如何从远程存储库下载maven工件到本地文件夹? - How download maven artifact from remote repository to local folder? 将罐子从Maven存储库下载到本地目录 - download a jar from maven repository to a local directory 如何强制Maven从中央存储库下载maven-metadata.xml? - How to force Maven to download maven-metadata.xml from the central repository? IntelliJ 无法从本地 Maven 存储库加载源 - IntelliJ cannot load sources from local Maven repository 如何从 maven 的本地存储库中找出我可以使用哪些依赖项? - How to find out what kind of dependencies I can use from local repository in maven?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM