score:10

Accepted answer

in this particular case, the solution was the right proxy configuration of eclipse (window -> preferences -> network connection), the company possessed a strict security system. i will leave the question, because there are answers that can help the community. thank you very much for the answers above.

score:0

it must be a configuration problem. your pom is fine.

here's what i did. new folder, put your pom inside. then in eclipse: import -> maven -> existing maven project. dependencies got included in the project.

i did this using eclipse helios. i think the plugin version i am using is 0.12

you should check the maven properties in eclipse.

score:0

this error bothered me for two days. i tried all kinds of solutions, nothing worked. finally i give up and tried a radical approach. and it worked! here are the steps:

  1. save a copy of the pom.xml,
  2. deleted all text in pom.xml
  3. let eclipse do a clean rebuild, of course everything will be broken.
  4. pasted back everything in the original pom.xml
  5. let eclipse build again

i guess it was "indeterministic" as the following article said.

http://wiki.eclipse.org/m2e_plugin_execution_not_covered

score:0

in my case there was a dependency without a version. in eclipse m2e does not force you to enter a version so i left it blank. once i put the version in pom.xml from within eclipse all was fine

score:0

i had a similar case for the default groovy compiler plugin

the solution was to install me2 provided by springsource according to this answer

plugin execution not covered by lifecycle configuration maven error

this immediately solved the "plugin execution not covered by lifecycle configuration" problem in eclispe juno.

score:0

i had the same problem but with an other cause. the solution was to deactivate avira browser protection (in german browser-schutz). i took the solusion from m2e cannot transfer metadata from nexus, but maven command line can. it can be activated again ones maven has the needed plugin.

score:0

i am using macosx with eclipse 4.3 (krepler). what i originally tried was to install maven via the terminal using brew. it installed correctly maven 3.0.4. however when i tried to import any ready maven projects (file > import > maven) it would display the following two errors:

no marketplace entries found to handle execution default-testresources

what i did is go to help > eclipse marketplace and type "maven" in the search bar and install the first default maven client for eclipse. everything worked for me from this point.

hope it helps to you too.

score:0

the following steps worked for me:

  1. close eclipse.
  2. navigate to user home directory. (for example: "c:\users\yourusername.m2")
  3. delete the "repository" folder.
  4. re-open eclipse.
  5. click on the maven project that has an issue and go to "project" --> "clean".
  6. right-click on the project and go to "maven" --> "update project...".
  7. close eclipse.
  8. open eclipse.
  9. click on the project folder in the "project explorer" window (usually on the left).
  10. hit the "f5" key a few times to refresh your project.
  11. done! these steps worked for me in eclipse luna. please let me know if i can help further.

score:0

my issue was that eclipse could not find the mvn.bat file within the installation directory. the solution is to create a mvn.bat file with the following code:

"%~dp0\mvn.cmd" %*

save that file. place it inside the [maven installation folder]\bin directory.

score:1

i would add some points that helped me to solve this problem :

having the local repository ok, on the other hand, turned out to be quite costly, as many archetypes would not get loaded, due apparently to timeouts of m2eclipse and very unstable communication speeds in my case.

in many cases only the error file could be found in the folder ex : xxx.jar.lastupdated, instead of the jar or pom file. i had always to suppress this file to permit a new download.

also really worthy were :

  • as already said, using the mvn clean install from the command line, apparently much more patient than m2eclipse, and also efficient and verbose, at least for the time being.

  • (and also the update project of the maven menu)

  • downloading using the dependency:get goal

    mvn org.apache.maven.plugins:maven-dependency-plugin:2.1:get -drepourl=url -dartifact=groupid:artifactid:version1

(from within the project folder) (hint given in another thread, thanks also).

  • also downloading and installing manually (.jar+.sha1), from in particular, "m2proxy atlassian" .

  • adding other repositories in the pom.xml itself (the settings.xml mirror configuration did'nt do the job, i don't know yet why). ex : nexus/content/repositories/releases/ et nexus/content/repositories/releases/, sous repository.jboss.org, ou download.java.net/maven/2 .

to finish, in any case, a lot of time (!..) could have been et could certainly still be spared with a light tool repairing thoroughly the local repository straightaway. i could not yet find it. actually it should even be normally a mvn command ("--repair-local-repository").

score:1

encountered the same problem. for my case i was working behind a proxy.

my solution was

  1. modify the settings.xml file in the .m2 folder to add the proxy configuration.

    proxy true http 172.23.182.63 4145

  2. in eclipse click update settings button. menu: windows>>preferences>>maven>>user settings

  3. delete the .m2/repository folder
  4. refresh my maven project.

after step 4 - eclipse took a few minutes downloading files and project refreshed successfully.

score:2

this what helped me:

  1. delete the project from eclipse (but don't delete from disk)
  2. close eclipse
  3. in your user folder there is .m folder. delete repository folder underneath it (.m/repository).
  4. open eclipse
  5. import project as existing maven project (from disk).

good luck.

score:4

in my case the problem was solved by window -> preferences -> maven -> user settings -> update settings. i don't know the problem cause at the first place.

score:13

i solved this by running mvn -u install from command line and then "maven->update project" from eclipse

score:29

just go to your user folder, inside it there's a ".m2" folder, open it and delete the folder "repository". go to eclipse, clean your project, then right click->maven->update project .. and you are ready to go.

score:35

i also had same problem with eclipse 3.7.2 (indigo) and maven 3.0.4.

eclipse wasn't picking up my maven settings, so this is what i did to fix the problem:

  1. window - preferences - maven - installations

    • add (maven 3.0.4 instead of using embedded)
    • click apply & ok
  2. maven > update project configuration... on project (right click)

  3. shutdown eclipse

  4. run mvn install from the command line.

  5. open eclipse

those steps worked for me, but the problem isn't consistent. i've only had with issue on one computer.

score:74

i had same problem with eclipse 3.7.2 (indigo) and maven 3.0.4.

in my case, the problem was caused by missing maven-resources-plugin-2.4.3.jar in {user.home}\.m2\repository\org\apache\maven\plugins\maven-resources-plugin\2.4.3 folder. (no idea why maven didn't update it)

solution:

1.) add dependency to pom.xml

<dependency>
    <groupid>org.apache.maven.plugins</groupid>
    <artifactid>maven-resources-plugin</artifactid>
    <version>2.4.3</version>
</dependency>

2.) run mvn install from eclipse or from command line

3.) refresh the project in eclipse (f5)

4.) run maven > update project configuration... on project (right click)

jar file is downloaded to local repository and there are no errors in ws.


Related Query

More Query from same tag