java: Annotation processing is not supported for module cycles. Please ensure that all modules from cycle [prompt-aigc,prompt-dao] are excluded from annotation processing
时间: 2023-10-25 15:35:01 浏览: 610
paoding-rose
This error message suggests that your Java project has a cyclic dependency between two modules, namely `prompt-aigc` and `prompt-dao`, and this is causing issues with the annotation processing.
To resolve this issue, you can try the following:
1. Exclude one of the modules from annotation processing. You can do this by adding the following line to the `module-info.java` file of the module that you want to exclude:
```
opens com.example.mymodule to com.sun.tools.javac.processing;
```
Replace `com.example.mymodule` with the package name of your module. This will exclude the module from annotation processing.
2. Remove the cyclic dependency between the two modules. You can do this by refactoring your code so that the two modules no longer depend on each other in a cyclic way.
3. Upgrade to a newer version of Java that supports annotation processing with cyclic dependencies. This may not be possible, depending on your project requirements.
I hope this helps! Let me know if you have any further questions.
阅读全文