J4Numbers
J4Numbers

Reputation: 428

An internal error occurred during: "Updating Maven Dependencies"

Whenever I run eclipse, I get the message:

An internal error occurred during: "Updating Maven Dependencies".
Lorg/codehaus/plexus/archiver/jar/JarArchiver;

I am running maven version 3.0.4, and I've tried to update the JarArchiver only for it to fail time and time again.

Does anyone have any ideas on what might be causing the problem? If you have a solution, that would also be incredibly helpful.

Upvotes: 7

Views: 25249

Answers (7)

Matthias
Matthias

Reputation: 12259

For me, this error occured when trying to import and build an older project with a JDK 11. I switched back to JDK 8 and it seems to work now.

Upvotes: 0

Naren Baskara Rao
Naren Baskara Rao

Reputation: 31

I tried all the above solutions but the error didn't go away. So then I checked Installed Programs on my windows machine and found two different versions of Java installed. (9.0.4 and 10.0.0) I removed Java 10 and now Maven update works. Hope this helps.

Upvotes: 0

user2125483
user2125483

Reputation: 146

After closing Eclipse I removed all versions from ~/.m2/repository/org/codehaus/plexus/plexus-archiver except for the latest.

During the subsequent Eclipse startup another artifact causing an error was Maven Archiver, so I deleted old versions from ~/.m2/repository/org/apache/maven/maven-archiver as well.

After another Eclipse restart I performed Maven -> Update Project. All was well after that.

Upvotes: 13

Naresh
Naresh

Reputation: 1

Navigate to C:\Users\.m2\repository\org\codehaus\plexus and delete all the subfolders inside plexus and re-run the pom.xml file

!! it worked !!

Upvotes: -1

vkj
vkj

Reputation: 148

Deleting the repository in the ./m2 worked for me

Upvotes: 1

user2608007
user2608007

Reputation: 71

Steps below worked for me to resovle the issue(Add the following in pom.xml)

<plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-jar-plugin</artifactId>
          <version>2.4</version>
 </plugin>

Reimport the project again in Eclipse/STS.

The plugin configuration is taken from the maven site below: http://maven.apache.org/plugins/maven-jar-plugin/plugin-info.html

Upvotes: 7

amoe
amoe

Reputation: 4569

The answer from user2125483 did not work for me. I tried selectively removing org.maven and org.codehaus.plexus package subdirectories of my local Maven repository (~/.m2) without any change in the error message. I needed to nuke my entire local Maven repository and rebuild from nothing for this error to vanish.

Upvotes: 3

Related Questions