构建期间发生错误.在项目上运行构建器"CDI(上下文和依赖项注入)构建器"时出错 [英] Errors occurred during the build. Errors running builder 'CDI (Contexts and Dependency Injection) Builder' on project

查看:238
本文介绍了构建期间发生错误.在项目上运行构建器"CDI(上下文和依赖项注入)构建器"时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试编辑文件并保存更改时,我在Eclipse Oxygen中遇到以下构建错误.

I get the below build error in Eclipse Oxygen whenver I try to edit the files and save the changes.

Building workspace has encountered a problem.
Errors occurred during build.

Errors occurred during the build.
Errors running builder 'CDI (Contexts and Dependency Injection) Builder' on project 'EmployeesManagementSystem'.
Unknown tag! pos=4 poolCount = 18

我尝试删除Eclipse工作区的.metadata文件夹(如与构建错误有关的其他帖子所述),但错误仍然存​​在.

I have tried deleting the .metadata folder of the eclipse workspace(as suggested in other posts related to build error) , but the error is still there.

推荐答案

您的项目使用的本地maven存储库中的某些jar文件可能未正确下载或已损坏.您可以:

It's possible that some of jar files in your local maven repository, which are used by your project, was not downloaded correctly or it's corrupted. You can:

  1. 尝试通过Maven > Update project > Check "Clean projects"和您要对其执行清理操作的项目清理本地Maven存储库
  2. Window > Preferences > JBoss Tools > Maven Intagration > Uncheck "CDI Facet"中禁用它(如果不需要CDI工具支持),然后在Project Properties > CDI Settings > Uncheck "CDI Support"中也为您的项目禁用
  1. try to clean your local maven repo by Maven > Update project > Check "Clean projects" and the project for which you apply clean action
  2. disable it (if you don't need CDI Tools support) in Window > Preferences > JBoss Tools > Maven Intagration > Uncheck "CDI Facet" and then disable in Project Properties > CDI Settings > Uncheck "CDI Support" for your project as well

这篇关于构建期间发生错误.在项目上运行构建器"CDI(上下文和依赖项注入)构建器"时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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