ZBLOG

java: Annotation processing is not supported for module cycles. Please ensure that all modules from cycle [data-service-use,data-service-biz] are excluded from annotation processing

This error message indicates that there is a cycle in the module dependency graph of your Java project, where two or more modules depend on each other in a circular manner. This can cause issues with annotation processing, which is a tool used to generate code or perform checks based on annotations in your source code.

To resolve this issue, you need to exclude all modules involved in the cycle from annotation processing. In this case, the modules “data-service-use” and “data-service-biz” are part of the cycle, so you should exclude them both.

To do this, you can add the following line to your build.gradle file:

compileJava {
  options.compilerArgs += ["--module-path", configurations.compileClasspath.asPath,
                           "--add-modules", "ALL-MODULE-PATH",
                           "--limit-modules", "!data-service-use,!data-service-biz"]
}

This will tell the Java compiler to exclude the “data-service-use” and “data-service-biz” modules from annotation processing. Note that you may need to adjust this configuration depending on your specific project setup.

本站部分文章来源于网络,版权归原作者所有,如有侵权请联系站长删除。
转载请注明出处:https://golang.0voice.com/?id=6167

分享:
扫描分享到社交APP
上一篇
下一篇
发表列表
游客 游客
此处应有掌声~
评论列表

还没有评论,快来说点什么吧~

联系我们

在线咨询: 点击这里给我发消息

微信号:3007537140

上班时间: 10:30-22:30

关注我们
x

注册

已经有帐号?