IDEA构建maven项目后报错求大佬们解决Error:Maven Resources Compiler: Maven project configuration required for module 'XXX' isn't available.

在我重装系统之后装了idea、maven,用idea创建maven项目,创建成功之后会有一个错误,之前并未出现过。

Error:Maven Resources Compiler: Maven project configuration required for module 'XXX' isn't available. Compilation of Maven projects is supported only if external build is started from an IDE.

经过网上搜索,可以通build或者rebuild解决,但是每次创建maven项目都会出现这个问题,想彻底解决,请问有大佬能解决吗?

https://blog.csdn.net/weixin_40359716/article/details/104629073