找不到Maven插件-IntelliJ IDEA 2019.2(社区版)

时间:2019-08-01 07:06:59

标签: java maven intellij-idea

我是IntelliJ IDEA的新手,我只安装了1个maven项目;当我使用mvn compile从终端进行编译时,我得到 BUILD SUCCESS

[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ cartas ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 11 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ leads ---
[INFO] Nothing to compile - all classes are up to date
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 30.596 s
[INFO] Finished at: 2019-08-01T09:00:34+02:00
[INFO] Final Memory: 50M/312M
[INFO] ------------------------------------------------------------------------

但是在IDE中,许多插件出现了一些错误:

enter image description here

我正在使用:

IntelliJ IDEA 2019.2 (Community Edition)
Build #IC-192.5728.98, built on July 23, 2019
Runtime version: 11.0.3+12-b304.10 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Windows 10 10.0

并使用在IntelliJ的maven设置中选中的插件注册表

2 个答案:

答案 0 :(得分:1)

IDEA 2019.2中的已知错误,应在2019.2.1或/和2019.3中修复

  

https://youtrack.jetbrains.com/issue/IDEA-219033

答案 1 :(得分:1)

C:\Users\%USERNAME%\.m2\repository\org\apache 中删除 maven 文件夹。删除目录后,请重新启动IDE并等待软件包下载