Maven 报错:Compilation of Maven projects is supported only if external build is started from an IDE.
- Maven 报错:
Error:Maven Resources Compiler: Maven project configuration required for module 'yourProjectName' isn't available. Compilation of Maven projects is supported only if external build is started from an IDE.
原因:修改了项目对应的 文件夹名和 module 名。
解决:
如果是 idea 的话,右击 pom.xml 文件,选择最下面的 “ Add as maven build file”,然后编译器会重新构建,就好了