每当我尝试编辑文件并保存更改时,我都会在 Eclipse Oxygen 中收到以下构建错误。
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
文件夹(如其他与构建错误相关的帖子中所建议),但错误仍然存在。
最佳答案
您的项目使用的本地 maven 存储库中的某些 jar 文件可能未正确下载或已损坏。您可以:
- 尝试通过
Maven > 更新项目 > 检查“清理项目”
和您应用清理操作的项目 - 在
Window > Preferences > JBoss Tools > Maven Intagration > Uncheck "CDI Facet"
中禁用它(如果您不需要 CDI 工具支持),然后在Project Properties > CDI 中禁用它设置 > 也为您的项目取消选中“CDI 支持”
关于java - 构建期间发生错误。在项目上运行生成器 'CDI (Contexts and Dependency Injection) Builder' 时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48521247/