Eclipse Mars 2 SmartHome (OOMPH) - 无法构建 SmartHome 项目

Eclipse Mars 2 SmartHome (OOMPH) - Cannot build SmartHome projects

我一直在为Eclipse 项目的SmartHome SDK 苦苦挣扎。 我已按照 http://www.eclipse.org/smarthome/documentation/development/ide.html 中的说明进行操作,但我仍然 运行 遇到问题。

当我尝试执行重建项目的更新任务时,我收到此错误日志:

Executing manual tasks Product org.eclipse.products.epp.package.java.latest.released Project org.eclipse.equinox.p2.master Project org.eclipse.equinox.framework.master Project org.eclipse.equinox.bundles.master Project org.eclipse.smarthome.core.master Bundle org.eclipse.oomph.setup 1.3.0.v20160213-0953, build=2194, branch=c991531eaee52798fcea97b4b75db38b5d95e913, commit=c991531eaee52798fcea97b4b75db38b5d95e913 Bundle org.eclipse.oomph.setup.core 1.3.0.v20160213-0953, build=2194, branch=c991531eaee52798fcea97b4b75db38b5d95e913, commit=c991531eaee52798fcea97b4b75db38b5d95e913 Bundle org.eclipse.oomph.setup.git 1.3.0.v20160213-0953, build=2194, branch=c991531eaee52798fcea97b4b75db38b5d95e913, commit=c991531eaee52798fcea97b4b75db38b5d95e913 Bundle org.eclipse.oomph.setup.jdt 1.3.0.v20160213-0953, build=2194, branch=c991531eaee52798fcea97b4b75db38b5d95e913, commit=c991531eaee52798fcea97b4b75db38b5d95e913 Bundle org.eclipse.oomph.setup.launching 1.3.0.v20160213-0953, build=2194, branch=c991531eaee52798fcea97b4b75db38b5d95e913, commit=c991531eaee52798fcea97b4b75db38b5d95e913 Bundle org.eclipse.oomph.setup.p2 1.3.0.v20160213-0953, build=2194, branch=c991531eaee52798fcea97b4b75db38b5d95e913, commit=c991531eaee52798fcea97b4b75db38b5d95e913 Bundle org.eclipse.oomph.setup.pde 1.3.0.v20160213-0953, build=2194, branch=c991531eaee52798fcea97b4b75db38b5d95e913, commit=c991531eaee52798fcea97b4b75db38b5d95e913 Bundle org.eclipse.oomph.setup.projects 1.3.0.v20160213-0953, build=2194, branch=c991531eaee52798fcea97b4b75db38b5d95e913, commit=c991531eaee52798fcea97b4b75db38b5d95e913 Bundle org.eclipse.oomph.setup.targlets 1.3.0.v20160213-0953, build=2194, branch=c991531eaee52798fcea97b4b75db38b5d95e913, commit=c991531eaee52798fcea97b4b75db38b5d95e913 Bundle org.eclipse.oomph.setup.workingsets 1.3.0.v20160213-0953, build=2194, branch=c991531eaee52798fcea97b4b75db38b5d95e913, commit=c991531eaee52798fcea97b4b75db38b5d95e913 Performing P2 Director (Eclipse IDE for Java Developers (Mars)) Offline = true Mirrors = true Resolving 34 requirements from 8 repositories to D:\Programs\Eclipse - Java only\eclipse Requirement org.eclipse.wst.xml_ui.feature.feature.group Requirement org.eclipse.m2e.feature.feature.group Requirement org.eclipse.m2e.logback.feature.feature.group Requirement org.eclipse.xtend.sdk.feature.group [2.6.0,2.7.0) Requirement org.eclipse.xtext.sdk.feature.group [2.6.0,2.7.0) Requirement org.eclipse.emf.mwe2.language.sdk.feature.group [2.6.0,2.7.0) Requirement org.eclipse.emf.mwe2.runtime.sdk.feature.group [2.6.0,2.7.0) Requirement org.eclipse.emf.mwe.core.feature.group [1.3.2,1.4.0) Requirement org.eclipse.emf.mwe.sdk.feature.group [1.3.2,1.4.0) Requirement org.codehaus.groovy.eclipse.feature.feature.group Requirement org.sonatype.tycho.m2e.feature.feature.group Requirement org.eclipse.emf.sdk.feature.group Requirement org.eclipse.mylyn.java_feature.feature.group Requirement org.eclipse.mylyn.bugzilla_feature.feature.group Requirement org.eclipse.mylyn.hudson.feature.group Requirement org.eclipse.mylyn.git.feature.group Requirement org.eclipse.pde.feature.group Requirement org.eclipse.wst.jsdt.feature.feature.group Requirement org.eclipse.wst.web_ui.feature.feature.group Requirement epp.package.java [4.5.0,4.6.0) Requirement org.eclipse.platform.feature.group [4.5.0,4.6.0) Requirement org.eclipse.rcp.feature.group [4.5.0,4.6.0) Requirement org.eclipse.jdt.feature.group [3.11.0,3.12.0) Requirement org.eclipse.oomph.setup.feature.group Requirement org.eclipse.oomph.targlets.feature.group Requirement org.eclipse.oomph.setup.targlets.feature.group Requirement org.eclipse.oomph.setup.jdt.feature.group Requirement org.eclipse.oomph.setup.git.feature.group Requirement org.eclipse.egit.feature.group Requirement org.eclipse.oomph.setup.workingsets.feature.group Requirement org.eclipse.oomph.setup.projects.feature.group Requirement org.eclipse.oomph.setup.pde.feature.group Requirement org.eclipse.oomph.setup.launching.feature.group Requirement org.eclipse.pde.api.tools.ee.feature.feature.group Repository http://repo1.maven.org/maven2/.m2e/connectors/m2eclipse-tycho/0.7.0/N/0.7.0.201309291400/ Repository http://download.eclipse.org/modeling/tmf/xtext/updates/composite/releases/ Repository http://download.eclipse.org/modeling/emf/emf/updates/milestones/ Repository http://dist.springsource.org/snapshot/GRECLIPSE/e4.5/ Repository http://download.eclipse.org/technology/epp/packages/mars Repository http://download.eclipse.org/releases/mars/201602261000 Repository http://download.eclipse.org/oomph/updates/milestone/latest Repository http://download.eclipse.org/egit/updates Adding repository http://repo1.maven.org/maven2/.m2e/connectors/m2eclipse-tycho/0.7.0/N/0.7.0.201309291400/ Adding repository http://download.eclipse.org/modeling/tmf/xtext/updates/composite/releases/ Adding repository http://download.eclipse.org/egit/updates Adding repository http://download.eclipse.org/modeling/emf/emf/updates/milestones/ Adding repository http://download.eclipse.org/oomph/updates/milestone/latest Adding repository http://dist.springsource.org/snapshot/GRECLIPSE/e4.5/ Adding repository http://download.eclipse.org/technology/epp/packages/mars Adding repository http://download.eclipse.org/releases/mars/201602261000 Refresh DSLD scripts Refresh DSLD scripts Synchronizing Resources... Refresh DSLD scripts Synchronizing Resources... Calculating requirements and dependencies. Refresh DSLD scripts Synchronizing Resources... Searching for markers Process resource updates Preparing to validate org.eclipse.smarthome.ui.paper Validation done Computing prerequisite plan No software updates are available Performing Preference /instance/org.eclipse.jdt.core/org.eclipse.jdt.core.codeComplete.argumentSuffixes Performing Preference /instance/org.eclipse.jdt.core/org.eclipse.jdt.core.codeComplete.staticFinalFieldSuffixes Performing Targlets (Eclipse Platform + Equinox Bundles + Equinox Framework + Equinox P2 + Equinox Platform) Repository http://download.eclipse.org/tools/ajdt/44/dev/update Repository http://download.eclipse.org/cbi/updates/license Offline = true Mirrors = true Adding repository http://download.eclipse.org/tools/ajdt/44/dev/update Adding repository http://download.eclipse.org/cbi/updates/license Calculating requirements and dependencies. Cannot complete the request. Generating details. ERROR: org.eclipse.equinox.p2.director code=10053 Cannot complete the install because one or more required items could not be found. at org.eclipse.oomph.targlets.internal.core.TargletContainer.forceUpdate(TargletContainer.java:688) at org.eclipse.oomph.setup.targlets.impl.TargletTaskImpl.run(TargletTaskImpl.java:974) at org.eclipse.oomph.util.pde.TargetPlatformUtil.runWithTargetPlatformService(TargetPlatformUtil.java:119) at org.eclipse.oomph.setup.targlets.impl.TargletTaskImpl.perform(TargletTaskImpl.java:910) at org.eclipse.oomph.setup.internal.core.SetupTaskPerformer.doPerformNeededSetupTasks(SetupTaskPerformer.java:3036) at org.eclipse.oomph.setup.internal.core.SetupTaskPerformer.access(SetupTaskPerformer.java:2980) at org.eclipse.oomph.setup.internal.core.SetupTaskPerformer$WorkspaceUtil.run(SetupTaskPerformer.java:4170) at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2241) at org.eclipse.oomph.setup.internal.core.SetupTaskPerformer$WorkspaceUtil.performNeededSetupTasks(SetupTaskPerformer.java:4164) at org.eclipse.oomph.setup.internal.core.SetupTaskPerformer$WorkspaceUtil.access[=11=](SetupTaskPerformer.java:4162) at org.eclipse.oomph.setup.internal.core.SetupTaskPerformer.performNeededSetupTasks(SetupTaskPerformer.java:2971) at org.eclipse.oomph.setup.internal.core.SetupTaskPerformer.performTriggeredSetupTasks(SetupTaskPerformer.java:2946) at org.eclipse.oomph.setup.internal.core.SetupTaskPerformer.perform(SetupTaskPerformer.java:2857) at org.eclipse.oomph.setup.ui.wizards.ProgressPage.run(ProgressPage.java:555) at org.eclipse.oomph.setup.ui.wizards.ProgressPage.run(ProgressPage.java:674) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55) ERROR: org.eclipse.equinox.p2.director code=0 Software being installed: artificial_root 1.0.0.v1457620774191

 ERROR:
org.eclipse.equinox.p2.director code=0 Missing requirement:
artificial_root 1.0.0.v1457620774191 requires
'org.eclipse.platform.feature.group 0.0.0' but it could not be found

Took 10 seconds. There are failed tasks. Press Back to choose
different settings or Cancel to abort.

为了您的方便,我突出显示了最后几行,这是主要错误。 我能做些什么来解决这个问题吗?好像少了一个插件,但我不知道在哪里可以找到它..

谢谢。

最终通过完全删除 OpenHab Eclipse 并通过 Eclipse 安装程序重新安装来解决。您应该确保选择 "Advanced mode" 并从列表中选择 "OpenHab Development" 和 "OpenHab addons 2"。