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