Maven 报错:Compilation of Maven projects is supported only if external build is started from an IDE.

  1. 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”,然后编译器会重新构建,就好了

posted on 2019-09-16 15:24  cag2050  阅读(6315)  评论(0编辑  收藏  举报

导航