IntelliJ IDEA在Maven工具栏树中两次显示所有Maven插件 [英] IntelliJ IDEA showing all maven plugins twice in maven toolbar tree
问题描述
我有一个Maven项目.每当我尝试在IDEA中打开它时,所有插件都会在树中显示两次.我尝试重新启动,使缓存无效/重新启动,再次签出项目,清除.m2文件夹,检查maven设置文件.
I have a maven project. Whenever I try to open it in IDEA, all plugins are shown twice in the tree. I have tried restart, invalidate caches / restart, checkout project again, clear .m2 folder, checking maven settings file.
IntelliJ IDEA 2019.3.2(社区版) Build#IC-193.6015.39,建于2020年1月21日
IntelliJ IDEA 2019.3.2 ( Community Edition ) Build #IC-193.6015.39, built on January 21, 2020
运行时版本:11.0.5 + 10-b520.30 amd64
Runtime version: 11.0.5+10-b520.30 amd64
我找不到任何解决方案.感谢您的帮助.
I couldn't find any solution. Thanks for help.
推荐答案
您可以尝试以下三件事,这可能会有所帮助:
There are three immediate things that you could try, that could help:
-
重新导入Maven项目. IntelliJ尝试解析pom并根据pom中的信息构建对象模型.在maven选项卡中有一个看起来像两个箭头的按钮,形成一个圆圈.
Reimport the maven project. IntelliJ tries to parse your pom and build an object model based on the information found in the pom. There is a button that looks like two arrows that form a circle in the maven tab.
关闭项目,然后再次打开pom.xml(它很重要,不是.idea之类的东西,而是pom.xml).它将为您提供删除当前定义并创建新定义的功能.这样做,它将重建所有内容.
Close the project and open up the pom.xml again (its important, not the .idea or something, but a pom.xml). It will offer you to delete the current definitions and create new. Do it and it will rebuild everything.
File --> Invalidate Caches --> Restart
.它将使智能缓存无效(显然)并重新启动IDE.
File --> Invalidate Caches --> Restart
. It will invalidate intelliJ caches (obviously) and restart the IDE.
这篇关于IntelliJ IDEA在Maven工具栏树中两次显示所有Maven插件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!