Java solution: an error occurs when maven install and package are used.
The following problems occur when maven install and package are used in idea today:
[WARNING] The POM for org. apache. maven. plugins: maven-compiler-plugin: jar: 3.1 is missing, no dependency information available [WARNING] Error injecting: org. apache. maven. plugin. compiler. compilerMojojava. lang. noClassDefFoundError: org/codehaus/plexus/compiler/util/scan/mapping/SuffixMapping
[WARNING] The POM for org. apache. maven. plugins: maven-resources-plugin: jar: 2.6 is missing, no dependency information available [WARNING] Error injecting: org. apache. maven. plugin. resources. resourcesMojojava. lang. noClassDefFoundError: org/apache/maven/shared/filtering/MavenFilteringException
The first time the problem occurred, I first asked my friends if this was the case. Unfortunately, I didn't, so I had to solve it myself.
Check whether the prompts indicate that maven-compiler-plugin jar and maven-resources-plugin jar are lost. Therefore, you just need to add these two jar packages and Baidu will be available if I am not sure.