IntelliJ IDEA在Maven工具栏树中两次显示所有Maven插件 [英] IntelliJ IDEA showing all maven plugins twice in maven toolbar tree

查看:1932
本文介绍了IntelliJ IDEA在Maven工具栏树中两次显示所有Maven插件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个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:

  1. 重新导入Maven项目. IntelliJ尝试解析pom并根据pom中的信息构建对象模型.在maven选项卡中有一个看起来像两个箭头的按钮,形成一个圆圈.

  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.

关闭项目,然后再次打开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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆