【发布时间】:2017-11-10 15:49:44
【问题描述】:
我们在 Eclipse 中有许多战争项目。当它们作为 maven 项目导入时,会自动启用注释处理。
尝试通过将 <proc>none</proc> 添加到 maven-compiler-plugin 来禁用注释处理。没用。
如果preferences -> Maven -> Enable Java EE configuration 被禁用,则注释处理未启用(但无法部署模块)。一旦选中该选项,maven 更新就会开始并重新启用注释处理。
所有受影响的模块都被标识为J2EEModuleVirtualComponent 显示相同的maven调试信息:
YYY is a J2EEModuleVirtualComponent
Underlying resources for the root folder are :
-/YYY/src/main/java/
-/YYY/src/main/resources/
-/YYY/.apt_generated/
有没有办法在禁用注解处理的同时启用 Java EE 配置?
【问题讨论】:
标签: eclipse maven jakarta-ee annotation-processing