简体   繁体   English

如何从Eclipse升级Eclipse Luna到Mars?

[英]How can I upgrade Eclipse Luna to Mars from Eclipse?

I tried upgrading from Luna to Mars by following the instructions here: https://wiki.eclipse.org/FAQ_How_do_I_upgrade_Eclipse%3F 我按照以下说明尝试从Luna升级到Mars: https//wiki.eclipse.org/FAQ_How_do_I_upgrade_Eclipse%3F

I added the Mars repository http://download.eclipse.org/releases/mars as an update site and then did check for updates. 我将Mars存储库http://download.eclipse.org/releases/mars添加为更新站点,然后检查更新。 But I get the exception 但我得到了例外

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.epp.package.java,4.5.0.20150603-1639
No repository found containing: binary,epp.package.java.executable.gtk.linux.x86_64,4.5.0.20150603-1639
No repository found containing: org.eclipse.update.feature,org.eclipse.epp.package.common.feature,4.5.0.20150603-1639
No repository found containing: org.eclipse.update.feature,org.eclipse.epp.package.java.feature,4.5.0.20150603-1639

How can I fix this? 我怎样才能解决这个问题?

Before upgrading I first check the availables web sites for update. 在升级之前,我首先检查可用的网站以进行更新。 I disable all from the previous releases and start by performing an update on the already installed components. 我从以前的版本中禁用所有内容,然后通过对已安装的组件执行更新来启动。 After this upgrade I just add 升级后我只需添加

http://download.eclipse.org/releases/mars http://download.eclipse.org/releases/mars

and upgrade to the new release of eclipse. 并升级到eclipse的新版本。

This is a bad idea. 这是一个坏主意。 If you upgrade your Eclipse, it will be difficult to fall back when you want to (and you will). 如果你升级你的Eclipse,那么当你想要(并且你愿意)时很难回退。

Better is to create a new Eclipse instance and new (set of) workspace(s) for Mars. 更好的是为Mars创建一个新的Eclipse实例和新的(一组)工作空间。 Then either point to your existing Team repositories or import your existing projects. 然后指向现有的Team存储库或导入现有项目。

I don't know how relevant it is but for the record I not only added the mars release update site but also this one: http://download.eclipse.org/eclipse/updates/4.5 我不知道它有多相关但是为了记录我不仅添加了火星发布更新站点而且还添加了这个: http//download.eclipse.org/eclipse/updates/4.5

Maybe a duplicate? 也许是重复的? If so, let me know ;) 如果是这样,请告诉我;)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM