The structure of the project is:
After launching project B in Tomcat 7, I have an error:
Error:java: Annotation processing is not supported for module cycles. Please ensure that all modules from cycle [A,B] are excluded from annotation processing
How do I avoid this problem?
I use Java 8, Tomcat 7 and Intellij Idea 14.
Configure an annotation profilePress Ctrl+Alt+S to open the IDE settings and select Build, Execution, Deployment | Compiler | Annotation Processors.
To solve these kind of problems need to use Analyze Module dependencies in InteliJ-idea.
File Menu > Analyze > Module Dependencies
This shows the list of all projects which have cyclic dependencies and should be resolved first.
This feature helps you to find the problem.
EDIT – For the latest version, it is Analyze -> Analyze Module Dependencies..
In addition to Mikhails answer, here is how to fix it:
When you saw which modules have cyclic dependencies, right-click your project and
Open Module Settings
-> Expand the according module-group and select the module -> Dependencies
-> select and remove it
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With