Java Problem Resolution: Error using MAVEN install and package

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.