IntelliJ IDEA showing all maven plugins twice in maven toolbar tree

前端 未结 2 667
伪装坚强ぢ
伪装坚强ぢ 2020-12-19 12:48

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

相关标签:
2条回答
  • 2020-12-19 12:52

    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.

    0 讨论(0)
  • 2020-12-19 13:09
    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.
    0 讨论(0)
提交回复
热议问题