java IntellijIDEA 可以在哪里缓存 maven 依赖项?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/29123770/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-11-02 14:43:26  来源:igfitidea点击:

Where could IntellijIDEA cache maven dependencies?

javamavenintellij-ideaintellij-14

提问by Martin

For some of my modules Intellij IDEA is not importing the dependencies and plugins. Just the live cycle is imported.

对于我的某些模块,Intellij IDEA 没有导入依赖项和插件。只导入实时循环。

Maven Projects

Maven项目

The poms are valid as I compile on the command line. I have deleted the modules and reimported them. I deleted the project them and re-imported it.

当我在命令行上编译时,poms 是有效的。我已经删除了模块并重新导入了它们。我删除了他们的项目并重新导入。

So I wonder if there is some secret cache where Intellij IDEA informations on modules even after they are deleted.

所以我想知道是否有一些秘密缓存,即使在模块被删除之后,Intellij IDEA 信息也会被保存。

Or if there is any other reason why Intellij IDEA might not be able to import dependencies and plugins.

或者是否有任何其他原因导致 Intellij IDEA 可能无法导入依赖项和插件。

UPDATE:

更新:

Found this interesting error message:

发现这个有趣的错误信息:

enter image description here

enter image description here

I don't use apache commons. Must be an Intellij IDEA problem. Maybe it is time for a bug report.

我不使用 apache 公共资源。一定是 Intellij IDEA 问题。也许是时候提交错误报告了。

回答by Meo

...\home\.IntelliJIdea14\system\Maven- cache for maven artifacts, you can probably delete it.

...\home\.IntelliJIdea14\system\Maven- 缓存 Maven 工件,您可以删除它。

Module and project informations are stored within the project - .ideafolder and *.iprand *.imlfiles, you can delete them to be sure and reimport the project.

模块和项目信息存储在项目中-.idea文件夹,*.ipr*.iml文件,你可以将它们删除,以确保并重新导入项目。

Sometimes Main Menu | File | Invalidate cachesmight help.

有时Main Menu | File | Invalidate caches可能会有所帮助。

回答by Jose Quijada

I was having an issue where IntelliJ would show compilation issues in some classes, even though running a full mvn clean installfrom the command line would run successfully with no errors whatsoever.

我遇到了一个问题,即 IntelliJ 会在某些类中显示编译问题,即使mvn clean install从命令行运行完整程序会成功运行而没有任何错误。

The solution for me as suggested herewas to invalidate the cache and restart. I picked an option to both invalidate cache and restart.

对我来说,这里建议的解决方案是使缓存无效并重新启动。我选择了一个选项来使缓存无效并重新启动。

回答by Martin

I went away today. Just after I fitted an 8GB memory modules to the computer. So it might have been an silent out of memory condition.

我今天走了。就在我为计算机安装了 8GB 内存模块之后。所以它可能是一种无声的内存不足情况。

回答by Konstantin Ivanov

hack: Edit your .pom file - it will trigger repo reread. a space after version will do.

hack:编辑您的 .pom 文件 - 它会触发 repo 重新读取。版本后的空格就可以了。