maven 多項目之間依賴,install 沒有問題,只是在發佈到tomcat 啓動的時候編譯不過。java
報相似以下的錯誤:tomcat
Error:java: Annotation processing is not supported for module cycles. Please ensure that all modules from cycle [A,B] are excluded from annotation processingmaven
解決方法其實也很簡答:ide
To solve these kind of problems need to use Analyze Module dependencies in InteliJ-idea.idea
File Menu > Analyze > Module Dependenciesci
This shows the list of all projects which have cyclic dependencies and should be resolved first.io
This feature helps you to find the problem.編譯
意思是打開 File Menu > Analyze > Module Dependencies ,出問題的項目會顯示爲紅色,module
而後紅色的項目之間存在循環依賴問題,查看一下pom文件並去掉重複依賴就行了。cli