Bosco
Bosco

Reputation: 4062

pom.xml shows multiple annotations errors in Eclipse

I can build the project from command line, but when I import it to Eclipse I get following error in pom.xml:

Multiple annotations found at this line:
- Plugin execution not covered by lifecycle configuration: 
 org.apache.maven.plugins:maven-resources-plugin:2.6:testResources 
 (execution: default-testResources, phase: process-test-resources)
- Plugin execution not covered by lifecycle configuration: 
 org.apache.maven.plugins:maven-resources-plugin:2.6:resources 
 (execution: default-resources, phase: process-resources)

Eclipse Maven Integration plugin is using Maven version 3.2.1, and my system is also using the same version.

What could be the reason for this error? How to resolve it?

Upvotes: 1

Views: 8604

Answers (2)

meraba
meraba

Reputation: 1

You can try the following things:

  1. Right click on your project > Maven Clean Verify .
  2. Ok, this seems odd but; check your pom.xml file encoding. Be sure it's UTF-8. Also, one time, I tried this and worked for me; I just saved the pom.xml file again in notepad++ . (nothing did special, just clearing some spaces for saving the file again) After this, eclipse didn't give an error about pom.xml file.

Upvotes: 0

meghahere
meghahere

Reputation: 131

  1. You should install or update M2Eclipse i.e. Maven integration for
    eclipse
  2. Restart eclipse
  3. Delete project and add project again

This should resolve your error

Upvotes: 0

Related Questions