在以下期间发生内部错误:“更新Maven依赖关系” [英] An internal error occurred during: "Updating Maven Dependencies"

查看:1359
本文介绍了在以下期间发生内部错误:“更新Maven依赖关系”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

每当我运行eclipse时,我会收到以下消息:

Whenever I run eclipse, I get the message:

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

我正在运行maven版本3.0.4,我已经尝试更新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.

推荐答案

这个问题让我很疯狂。

This problem was driving me crazy.

我使用代理Ransack搜索我的登录文件夹(C:\Users\My Login\m2在Windows 7中)的.m2文件夹中的单词codehaus。

I used Agent Ransack to search the .m2 folder in my login folder (C:\Users\My Login\.m2 in Windows 7) for the word "codehaus".

返回的搜索:
C:\Users\My Login\.m2\repository\org\codehaus

The search returned: C:\Users\My Login\.m2\repository\org\codehaus

挖掘它的子目录,我发现:
C:\Users\My Login\.m2\repository\org\codehaus\ plexus\plexus-archiver

Digging into it's subdirectories, I found: C:\Users\My Login\.m2\repository\org\codehaus\plexus\plexus-archiver

在此文件夹中,至少有10个不同版本的plexus-archiver.jar。 plexus-archiver.jar包含JarArchiver。我关闭了Eclipse,然后删除了这个jar的所有版本,除了最新的。我启动了Eclipse,Eclipse正在初始化时,生成了一个新版本。在Eclipse中出现了一个不同的错误。

In this folder, there were at least 10 different versions of plexus-archiver.jar. plexus-archiver.jar contains JarArchiver. I closed Eclipse and then deleted all versions of this jar except the latest. I launched Eclipse and while Eclipse was initializing, a new version was generated. A different error appeared in Eclipse.

新的错误是抱怨Maven Archiver。
我搜索maven-archiver并找到这个目录:
C:\Users\My Login\m2\repository\org\apache\maven\maven-archiver

The new error was complaining about the Maven Archiver. I searched for maven-archiver and found this directory: C:\Users\My Login\.m2\repository\org\apache\maven\maven-archiver

同样的交易,我关闭了Eclipse并删除了所有版本的jar除了最新的。我再次推出了Eclipse,并生成了一个新版本。 Eclipse启动时没有错误。

Same deal, I closed Eclipse and deleted all versions of the jar except the latest. I launched Eclipse again and it generated a new version. No errors when Eclipse launched.

我右键点击了抱怨和选择的项目Maven - > Update Project。一切都很好。

I right-clicked on the project that was complaining and selected Maven -> Update Project. All was well after that.

这篇关于在以下期间发生内部错误:“更新Maven依赖关系”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆