错误:Maven Resources Compiler: Maven project configuration required for module ‘xxx‘ isn‘t available.

When idea creates a new maven project, an error is reported in Problems: 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. [Error: Maven Resource Compiler: The required Maven project configuration for module 'xxx' is not available. Compilation of Maven projects is only supported when launching an external build from the IDE. ], as shown in the figure:

Solution: Find the Build ---> Build Project above [or Build ---> Build Module 'xxx' (rebuild the 'xxx' module), or Build ---> Rebuild Project (Reconstruction Project)], as shown in the figure:

If an error is reported after Build, it means that some maven files are not loaded into the project. At this time, right-click pom.xml, select maven options, and then select reimport, as shown in the figure:

Supongo que te gusta

Origin blog.csdn.net/AdminGuan/article/details/100672523#comments_28433912
Recomendado
Clasificación