Eclipse Maven m2e plugin – Failed to read artifact descriptor

This morning Eclipse just refused to update from nexus and compile my maven projects (while command line mvn compile worked just fine). Eclipse shows in the Problems view an exception like this: 

ArtifactDescriptorException: Failed to read artifact descriptor for mydependency:jar: ArtifactResolutionException: Failure to transfer mydependency:jar from http://host:8081/nexus/content/groups/public was cached in the local repository, resolution will not be reattempted until the update interval of nexus has elapsed or updates are forced. Original error: Could not transfer artifact myDependency from/to nexus (http://host:8081/nexus/content/groups/public): connection timed out to http://host:8081/nexus/content/groups/public/myDependency.pom


The solution consists in deleting all “*.lastUpdated” files from m2e update folder (which by default is inside eclpse’s installation folder). 

This worked for me: 
find  /home/eclipseInstallFolder  -name "*.lastUpdated" -print -exec rm {} \;

This entry was posted in Eclipse RCP, maven. Bookmark the permalink.

4 Responses to Eclipse Maven m2e plugin – Failed to read artifact descriptor

  1. Octavian NITA says:

    Thank you kindly!!! — still applicable 🙂

    • esalagea says:

      Welcome. I didn’t have this kind of problems since I moved to intelliJ 🙂

      • Octavian NITA says:

        You know, I am seriously considering fully migrating towards IntelliJ too (i had used quite a bit before but since most of my teammates were using Eclipse… )

      • Steven Kerckhof says:

        Amen to that. My previous job believed in developers using their IDE of choice. In my new job, however, I’m forced to use eclipse. My life has never been the same.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s