IntelliJ IDEA showing all maven plugins twice in maven toolbar tree

我与影子孤独终老i 提交于 2020-02-16 05:17:39

问题


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 ( Community Edition ) Build #IC-193.6015.39, built on January 21, 2020

Runtime version: 11.0.5+10-b520.30 amd64

I couldn't find any solution. Thanks for help.


回答1:


There are three immediate things that you could try, that could help:

  1. 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.

  2. 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.

  3. File --> Invalidate Caches --> Restart. It will invalidate intelliJ caches (obviously) and restart the IDE.




回答2:


  1. Close your project from File menu. File--> close project
  2. Go to your project directory and delete .idea and any file with extension .iml
  3. Right-click on your pom and open it with IntelliJ or reimport your project from IntelliJ.


来源:https://stackoverflow.com/questions/59962386/intellij-idea-showing-all-maven-plugins-twice-in-maven-toolbar-tree

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!