我是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中,许多插件出现了一些错误:
我正在使用:
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设置中选中的插件注册表。
答案 0 :(得分:1)
IDEA 2019.2中的已知错误,应在2019.2.1或/和2019.3中修复
答案 1 :(得分:1)
从 C:\Users\%USERNAME%\.m2\repository\org\apache
中删除 maven 文件夹。删除目录后,请重新启动IDE并等待软件包下载