Intellij-出現Module ** must not contain source root **. The root already belongs to module **這類錯誤的解決方法


出現這個問題的原因是,多模塊Maven項目,parent目錄不能不能有src的code。找到parent 的 Source Folders看看是否把module的給加載進來了。刪掉就可以了。

參考:

【1】IDEA出現Module ** must not contain source root **. The root already belongs to module **這類錯誤的解決方法


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM