maven項目運行報錯:Annotation processing is not supported for module cycles

1.通過Analyze->Analyze Module Dependencies...發現是循環依賴。 
 


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


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


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

原文:https://blog.csdn.net/qq_36743013/article/details/70326771 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章