gpt4 book ai didi

Could not install Maven plugin in eclipse(无法在eclipse中安装Maven插件)

转载 作者:bug小助手 更新时间:2023-10-25 12:03:43 24 4
gpt4 key购买 nike



I am trying to install maven plugin to eclipse luna.
Version: Luna Service Release 1a (4.4.1)

我正在尝试安装maven插件,让露娜黯然失色。版本:露娜服务版本1a(4.4.1)



I followed below steps,
Help>Install New Software.

我按照以下步骤操作:帮助>安装新软件。



Added URL in work with - http://download.eclipse.org/technology/m2e/releases

添加了与-http://download.eclipse.org/technology/m2e/releases配合使用的URL



Selected all maven integration for eclipse.

为eclipse选择了所有maven集成。



Then click next, accepted licence agreement and finish.

然后依次单击Next、Accept许可协议和Finish。



but after this getting error

但在这之后得到了错误



        An error occurred while collecting items to be installed
session context was:(profile=epp.package.java, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=).
No repository found containing: osgi.bundle,org.eclipse.m2e.archetype.common,1.6.2.20150902-0001
No repository found containing: osgi.bundle,org.eclipse.m2e.core,1.6.2.20150902-0002
No repository found containing: osgi.bundle,org.eclipse.m2e.core.ui,1.6.2.20150902-0002
No repository found containing: osgi.bundle,org.eclipse.m2e.discovery,1.6.2.20150902-0002
No repository found containing: osgi.bundle,org.eclipse.m2e.editor,1.6.2.20150902-0002
No repository found containing: osgi.bundle,org.eclipse.m2e.editor.xml,1.6.2.20150902-0002
No repository found containing: osgi.bundle,org.eclipse.m2e.jdt,1.6.2.20150902-0002
No repository found containing: osgi.bundle,org.eclipse.m2e.jdt.ui,1.6.2.20150902-0002
No repository found containing: osgi.bundle,org.eclipse.m2e.launching,1.6.2.20150902-0002
No repository found containing: osgi.bundle,org.eclipse.m2e.lifecyclemapping.defaults,1.6.2.20150902-0002
No repository found containing: osgi.bundle,org.eclipse.m2e.logback.appender,1.6.2.20150902-0002
No repository found containing: osgi.bundle,org.eclipse.m2e.logback.configuration,1.6.2.20150902-0002
No repository found containing: osgi.bundle,org.eclipse.m2e.maven.indexer,1.6.2.20150902-0001
No repository found containing: osgi.bundle,org.eclipse.m2e.maven.runtime,1.6.2.20150902-0001
No repository found containing: osgi.bundle,org.eclipse.m2e.maven.runtime.slf4j.simple,1.6.2.20150902-0001
No repository found containing: osgi.bundle,org.eclipse.m2e.model.edit,1.6.2.20150902-0002
No repository found containing: osgi.bundle,org.eclipse.m2e.profiles.core,1.6.2.20150902-0002
No repository found containing: osgi.bundle,org.eclipse.m2e.profiles.ui,1.6.2.20150902-0002
No repository found containing: osgi.bundle,org.eclipse.m2e.refactoring,1.6.2.20150902-0002
No repository found containing: osgi.bundle,org.eclipse.m2e.scm,1.6.2.20150902-0002
No repository found containing: org.eclipse.update.feature,org.eclipse.m2e.feature,1.6.2.20150902-0002
No repository found containing: org.eclipse.update.feature,org.eclipse.m2e.logback.feature,1.6.2.20150902-0002
No repository found containing: osgi.bundle,org.eclipse.m2e.workspace.cli,0.3.1


I have many plugins already installed like SVN, ant, testng, etc. But could not proceed with maven. Also tried with eclipse market-place but facing same error. Graceful anyone can help.

我已经安装了许多插件,如SVN,ANT,TestNG等,但无法继续使用Maven。我也尝试过使用eclipse Market-Place,但遇到了同样的错误。优雅的任何人都可以帮忙。


更多回答

is your eclipse properly able to connect to internet ? ...check your proxy settings...you can test by opening a browser inside eclipse and firing a web request

您的eclipse是否能够正常连接到Internet?...检查您的代理设置...您可以通过在eclipse中打开浏览器并发出Web请求来进行测试

Yes it is connected.. Also checked proxy setting and they are OK. Also open url in eclipse browser and working fine.

是的,它是连接的..还检查了代理设置,它们都是正常的。也可以在eclipse浏览器中打开url,运行正常。

优秀答案推荐

Finally I resolved this issue. I have used eclipse Luna Service Release 1a (4.4.1). Yet I don't know what the problem was but I downloaded latest eclipse Luna and then added required plugins. It was successfully installed. Then I have import my projects to new work-space with new eclipse . Now it is working fine.

最后我解决了这个问题。我已经使用过ECLIPSE露娜服务版本1a(4.4.1)。然而,我不知道问题出在哪里,但我下载了最新的月食露娜,然后添加了所需的插件。它已成功安装。然后,我使用new eclipse将我的项目导入到新的工作空间。现在它运行得很好。



You needed to paste the following link https://download.eclipse.org/technology/m2e/releases/latest and everything would work.

您需要粘贴以下链接https://download.eclipse.org/technology/m2e/releases/latest,一切都会正常工作。


更多回答

While this code may solve the question, including an explanation of how and why this solves the problem would really help to improve the quality of your post, and probably result in more up-votes. Remember that you are answering the question for readers in the future, not just the person asking now. Please edit your answer to add explanations and give an indication of what limitations and assumptions apply.

虽然这个代码可能会解决这个问题,包括解释这个代码是如何以及为什么解决这个问题的,这将真正有助于提高你的帖子的质量,并可能导致更多的向上投票。记住,你是在为未来的读者回答问题,而不仅仅是现在提出问题的人。请编辑您的答案以添加解释,并说明适用的限制和假设。

While this link may answer the question, it is better to include the essential parts of the answer here and provide the link for reference. Link-only answers can become invalid if the linked page changes. - From Review

虽然这个链接可能会回答这个问题,但最好在这里包括答案的基本部分,并提供链接以供参考。如果链接的页面发生更改,仅限链接的答案可能会无效。-摘自评论

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com