如何将 Eclipse Luna 从 Eclipse 升级到 Mars?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/31029314/
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
How can I upgrade Eclipse Luna to Mars from Eclipse?
提问by barq
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/marsas an update site and then did check for updates. But I get the exception
我添加了 Mars 存储库http://download.eclipse.org/releases/mars作为更新站点,然后检查了更新。但我得到了例外
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?
我怎样才能解决这个问题?
回答by bluebossa
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。
回答by criedel
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
我不知道它有多相关,但为了记录,我不仅添加了 mars 发布更新站点,还添加了这个站点:http: //download.eclipse.org/eclipse/updates/4.5
Maybe a duplicate? If so, let me know ;)
也许是重复的?如果是这样,请告诉我;)
回答by Erick G. Hagstrom
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. Then either point to your existing Team repositories or import your existing projects.
更好的是为 Mars 创建一个新的 Eclipse 实例和新的(一组)工作区。然后指向您现有的团队存储库或导入您现有的项目。