首页 > 解决方案 > 在“导入 Maven 项目”和“构建 Maven 项目”期间发生内部错误

问题描述

从 STS 的 git 存储库导入 maven 项目时出现以下错误。

在“导入 Maven 项目”期间发生内部错误。没有枚举常量 org.eclipse.m2e.core.lifecyclemapping.model.PluginExecutionAction.items

请帮我解决这个问题。错误的屏幕截图

标签: javaeclipsemavenm2eclipsespring-boot-maven-plugin

解决方案


转到window-> preferences-> Maven -> Installations并将路径添加到您的 maven 文件夹(使用外部 maven)。看起来嵌入在 eclipse maven 中已损坏

或者

尝试右键单击项目选择Run as -> maven构建并添加目标:clean install


推荐阅读