The following issues occur with the Maven install and package in idea today:
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
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 arises, first asked the next small partner there is no such situation, unfortunately, there is no, so can only solve their own.
Look at the message is missing maven-compiler-plugin jar and maven-resources-plugin jar, so I would like to add these two jar package can be, in my uncertain situation Baidu appeared?? And then, quite decisively, add its dependencies to the Pom file:
<dependencies> <dependency> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-resources-plugin</artifactId> <version>2.6</version> </ dependency> <dependency> <groupId>org.apache.maven.plugins</groupId> < artifactid>maven-compiler-plugin</artifactid> <version>3.1</version> </ Dependency></dependencies>
Once again, the install and the package were executed, and fortunately there was no such problem, and build SUCCESS.
Emmm, originally came here to the end, but the small partner said is not with me to carry out the order, carefully recalled the operation sequence and there is no problem ah, but I am not quite sure what my operation sequence is exactly what, so, then, reproduce the problem, will be added to the Pom file dependent content deleted, Executes the install and the package, the order is random, the result is still build SUCCESS, and then the warehouse in the new dependencies on the relevant folders are all deleted "maven\ Maven-compiler-plugin and Maven-resources-plugin folders under Plugins, and also delete the files after the install and package execution, re-execute the install and The order is random, the result is still build SUCCESS, and the above problem also did not appear, so ... Do not understand ah??
Java Problem Resolution: Error using MAVEN install and package