Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
511 views
in Technique[技术] by (71.8m points)

java - IntelliJ IDEA showing all maven plugins twice in maven toolbar tree

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.

enter image description here

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.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...