1. 程式人生 > >idea多Module出現依賴迴圈問題----aAnnotation processing is not supported for module cycles

idea多Module出現依賴迴圈問題----aAnnotation processing is not supported for module cycles

idea迴圈依賴aAnnotation processing is not supported for module cycles.
1. 錯誤現象 
Error:java: Annotation processing is not supported for module cycles. Please ensure that all modules from cycle [book-rpc,book-api] are excluded from annotation processing 



通過Analyze->Analyze Module Dependencies...發現是迴圈依賴。 

 


2.解決辦法
先是找到這個依賴,刪掉相關的(右擊第一個module選中open module setting-->Dependencies)

 




然後在book-api中的pom.xml找到第二個這個依賴,刪掉,重新import Changes need to be imported


如果僅僅刪除module中的Dependencies中的相關依賴,有可能沒有解決根本性的問題,所以要看一下pom.xml中是否已經存在了相關依賴