6

I'm getting this error for my project that is working well in my other PC. I have imported Maven project and tried to update maven dependencies and it says....

Unable to update maven configuration for the following project and Updating Maven has encountered a problem could not find .classpath

I'm using STS 3.0.0. JRE 1.7 ..

BenMorel
  • 34,448
  • 50
  • 182
  • 322
MobiDev
  • 61
  • 1
  • 1
  • 2
  • Does the file .classpath exist in the project root directory (anyway I've seen that if I delete a .classpath file inside one of my project the maven update recreate it) ? Are the folder/s and file/s permissions ok ? – – Emanuele Ivaldi Aug 16 '13 at 13:25
  • Try this http://stackoverflow.com/a/8453370/233347 – prashant thakre Feb 08 '16 at 10:58

4 Answers4

3

May be you have a sourceDirectoy tag in your pom and where you specified 'src'
just remove it and it will do the job

Guizmoo03
  • 660
  • 1
  • 7
  • 23
1

Remove Maven Nature of your project. And Add Maven Nature again.

user2550754
  • 884
  • 8
  • 15
1

Unable to update Maven configuration Could not calculate build plan:Plugin org.apache.maven.plugins:maven-resources-plugin:2.7 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.7

I was getting this error while performing Maven Force Update Snapshots however same project I was able to force update in different workspace on the same machine.

Issue was Workspace not pointing to correct maven installation and settings.xml.

GO to Window > Preference > Maven > Installation Point to to correct maven installation Window > Preference > Maven > User Settings Both global and user settings points to correct settings.xml file.

0

I get the same problem when I imported a maven project to my workspace. I solved that issue by just closing the project and re-open it, then run the update maven configuration on it.