eclipse org.codehaus.plexus.archiver.jar.Manifest.merge(org.codehaus.plexus.archiver.jar.Manifest)

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/28351678/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-19 22:23:21  来源:igfitidea点击:

org.codehaus.plexus.archiver.jar.Manifest.merge(org.codehaus.plexus.archiver.jar.Manifest)

eclipsemavenpom.xmlm2e

提问by tmadison

This godforsaken error in eclipse won't die. I've tried everything mentioned here and elsewhere to get rid of it, but it won't go away and now I can't use the web service utility in eclipse because it complains about this "problem", which apparently isn't really a problem, but it is with m2e, which for the most part is useful.

eclipse 中这个该死的错误不会消失。我已经尝试了这里和其他地方提到的所有内容来摆脱它,但它不会消失,现在我无法在 eclipse 中使用 web 服务实用程序,因为它抱怨这个“问题”,这显然不是真的一个问题,但它是 m2e,它在大多数情况下是有用的。

First off, the error message, if you can call it that, is not very helpful. Whichever component generates that, could you produce something more meaningful?

首先,错误消息(如果您可以这么称呼的话)并不是很有帮助。无论哪个组件产生它,你能产生更有意义的东西吗?

Anyway, I've tried deleting the problems in eclipse, but they only come back. I've re-worked poms and updated the versions of the maven-ear-plugin to 2.3.2, all to no avail (and seriously, wouldn't that just be trying to skirt the real issue?). I've tried creating and updating a lifecylcle-mapping-metadata.xml file to ignore the org.codehaus.plexus -> plexus-archiver -> manifest goal. Nothing works.

无论如何,我已经尝试删除eclipse中的问题,但它们只会回来。我重新编写了 poms 并将 maven-ear-plugin 的版本更新到了 2.3.2,但都无济于事(说真的,这不就是试图绕过真正的问题吗?)。我尝试创建和更新 lifecylcle-mapping-metadata.xml 文件以忽略 org.codehaus.plexus -> plexus-archiver -> manifest 目标。没有任何作用。

What exactly is causing this message and what is the RIGHT way to diagnose the underlying cause and then solve it? Any insight would be most greatly appreciated.

究竟是什么导致了这条消息,诊断根本原因然后解决它的正确方法是什么?任何见解将不胜感激。

回答by Fred Bricon

This is caused by m2eclipse-mavenarchiver invoking the mavenarchiver plugin merge method by reflection. The method was removed in mavenarchiver 2.4, breaking m2eclipse-mavenarchiver.

这是由 m2eclipse-mavenarchiver 通过反射调用 mavenarchiver 插件合并方法引起的。该方法在 mavenarchiver 2.4 中被移除,破坏了 m2eclipse-mavenarchiver。

This issue was fixed in m2eclipse-mavenarchiver 0.17.0 you can install from?https://repo1.maven.org/maven2/.m2e/connectors/m2eclipse-mavenarchiver/0.17.0/N/LATEST/

此问题已在 m2eclipse-mavenarchiver 0.17.0 中修复,您可以从中安装吗?https://repo1.maven.org/maven2/.m2e/connectors/m2eclipse-mavenarchiver/0.17.0/N/LATEST/

(URL updated to HTTPS)

(网址更新为 HTTPS)