尝试执行PDE无头构建时,我发现 eclipse.buildScript 步骤显示以下内容:
[java] generateScript:
[java] [eclipse.buildScript] Some inter-plug-in dependencies have not been satisfied.
[java] [eclipse.buildScript] Bundle org.eclipse.datatools.connectivity.oda.design.ui:
[java] [eclipse.buildScript] Missing required plug-in org.eclipse.datatools.connectivity.oda.profile_[3.0.6,4.0.0).
[java] [eclipse.buildScript] Missing required plug-in org.eclipse.datatools.connectivity.oda.design_[3.0.4,4.0.0).
[java] [eclipse.buildScript] Missing required plug-in org.eclipse.datatools.connectivity.oda.consumer_[3.1.1,4.0.0).
[java] [eclipse.buildScript] Bundle org.eclipse.datatools.connectivity.oda.profile:
[java] [eclipse.buildScript] Missing required plug-in org.eclipse.datatools.connectivity.oda.consumer_[3.1.0,4.0.0).
[java] [eclipse.buildScript] Bundle org.eclipse.datatools.connectivity.ui.templates:
[java] [eclipse.buildScript] Missing required plug-in org.eclipse.pde.ui_[3.2.0,4.0.0).
[java] [eclipse.buildScript] Missing required plug-in org.eclipse.pde.ui.templates_[3.2.0,4.0.0).
[java] [eclipse.buildScript] Bundle org.eclipse.datatools.enablement.jdt.classpath:
[java] [eclipse.buildScript] Missing required plug-in org.eclipse.jdt.ui_[3.2.0,4.0.0).
[java] [eclipse.buildScript] Bundle org.eclipse.datatools.enablement.oda.ws.ui:
[java] [eclipse.buildScript] Missing required plug-in org.eclipse.datatools.connectivity.oda.design.ui_[3.0.6,4.0.0).
[java] [eclipse.buildScript] Missing required plug-in org.eclipse.datatools.enablement.oda.xml.ui_[1.1.0,2.0.0).
[java] [eclipse.buildScript] Bundle org.eclipse.datatools.enablement.oda.ws:
[java] [eclipse.buildScript] Another singleton version selected: org.eclipse.datatools.enablement.oda.ws_1.1.2.v200812171046
[java] [eclipse.buildScript] Optional plug-in org.eclipse.datatools.connectivity.oda.profile_[3.0.4,4.0.0) is not available.
[java] [eclipse.buildScript] Bundle org.eclipse.datatools.enablement.oda.xml.ui:
[java] [eclipse.buildScript] Missing required plug-in org.eclipse.datatools.connectivity.oda.design.ui_[3.0.6,4.0.0).
[java] [eclipse.buildScript] Bundle org.eclipse.datatools.enablement.oda.xml.ui:
[java] [eclipse.buildScript] Missing required plug-in org.eclipse.datatools.connectivity.oda.design.ui_[3.0.6,4.0.0).
[java] [eclipse.buildScript] Bundle org.eclipse.datatools.enablement.oda.xml:
[java] [eclipse.buildScript] Another singleton version selected: org.eclipse.datatools.enablement.oda.xml_1.1.2.v200902111040
[java] [eclipse.buildScript] Optional plug-in org.eclipse.datatools.connectivity.oda.profile_[3.0.4,4.0.0) is not available.
[java] [eclipse.buildScript] Bundle org.eclipse.jdt.ui:
[java] [eclipse.buildScript] Missing required plug-in org.eclipse.help_[3.4.0,4.0.0).
[java] [eclipse.buildScript] Missing required plug-in org.eclipse.core.expressions_[3.4.100,4.0.0).
[java] [eclipse.buildScript] Missing required plug-in org.eclipse.core.resources_[3.5.0,4.0.0).
[java] [eclipse.buildScript] Missing required plug-in org.eclipse.core.variables_[3.2.200,4.0.0).
[java] [eclipse.buildScript] Missing required plug-in org.eclipse.search_[3.5.0,4.0.0).
[java] [eclipse.buildScript] Missing required plug-in org.eclipse.debug.core_[3.5.0,4.0.0).
[java] [eclipse.buildScript] Missing required plug-in org.eclipse.debug.ui_[3.5.0,4.0.0).
[java] [eclipse.buildScript] Missing required plug-in org.eclipse.jdt.launching_[3.5.0,4.0.0).
[java] [eclipse.buildScript] Missing required plug-in org.eclipse.compare_[3.5.0,4.0.0).
[java] [eclipse.buildScript] Missing required plug-in org.eclipse.team.ui_[3.4.100,4.0.0).
[java] [eclipse.buildScript] Missing required plug-in org.eclipse.team.core_[3.4.100,4.0.0).
[java] [eclipse.buildScript] Missing required plug-in org.eclipse.jface.text_[3.5.0,4.0.0).
[java] [eclipse.buildScript] Missing required plug-in org.eclipse.ui_[3.5.0,4.0.0).
[java] [eclipse.buildScript] Missing required plug-in org.eclipse.ui.console_[3.4.0,4.0.0).
[java] [eclipse.buildScript] Missing required plug-in org.eclipse.ui.workbench.texteditor_[3.5.0,4.0.0).
[java] [eclipse.buildScript] Missing required plug-in org.eclipse.ui.ide_[3.5.0,4.0.0).
[java] [eclipse.buildScript] Missing required plug-in org.eclipse.ui.views_[3.3.100,4.0.0).
[java] [eclipse.buildScript] Missing required plug-in org.eclipse.ui.editors_[3.5.0,4.0.0).
[java] [eclipse.buildScript] Missing required plug-in org.eclipse.core.runtime_[3.5.0,4.0.0).
[java] [eclipse.buildScript] Missing required plug-in org.eclipse.ltk.core.refactoring_[3.5.0,4.0.0).
[java] [eclipse.buildScript] Missing required plug-in org.eclipse.ltk.ui.refactoring_[3.4.100,4.0.0).
[java] [eclipse.buildScript] Missing required plug-in org.eclipse.ui.forms_[3.4.0,4.0.0).
[java] [eclipse.buildScript] Missing required plug-in org.eclipse.ui.navigator_[3.3.200,4.0.0).
[java] [eclipse.buildScript] Missing required plug-in org.eclipse.ui.navigator.resources_[3.4.0,4.0.0).
[java] [eclipse.buildScript] Missing required plug-in org.eclipse.jdt.core.manipulation_[1.3.0,2.0.0).
[java] [eclipse.buildScript] Bundle org.eclipse.pde.ui.templates:
[java] [eclipse.buildScript] Missing required plug-in org.eclipse.pde.ui_[3.3.0,4.0.0).
[java] [eclipse.buildScript] Bundle org.eclipse.pde.ui:
[java] [eclipse.buildScript] Missing required plug-in org.eclipse.pde.core_[3.2.0,4.0.0).
[java] [eclipse.buildScript] Missing required plug-in org.eclipse.jface.text_[3.5.0,4.0.0).
[java] [eclipse.buildScript] Missing required plug-in org.eclipse.ui.workbench.texteditor_[3.5.0,4.0.0).
[java] [eclipse.buildScript] Missing required plug-in org.eclipse.debug.ui_[3.2.0,4.0.0).
[java] [eclipse.buildScript] Missing required plug-in org.eclipse.jdt.debug.ui_[3.2.0,4.0.0).
[java] [eclipse.buildScript] Missing required plug-in org.eclipse.jdt.launching_[3.2.0,4.0.0).
[java] [eclipse.buildScript] Missing required plug-in org.eclipse.jdt.ui_[3.2.0,4.0.0).
[java] [eclipse.buildScript] Missing required plug-in org.eclipse.pde.build_[3.2.0,4.0.0).
[java] [eclipse.buildScript] Missing required plug-in org.eclipse.search_[3.1.0,4.0.0).
[java] [eclipse.buildScript] Missing required plug-in org.eclipse.team.core_[3.2.0,4.0.0).
[java] [eclipse.buildScript] Missing required plug-in org.eclipse.ui_[3.5.0,4.0.0).
[java] [eclipse.buildScript] Missing required plug-in org.eclipse.ant.ui_[3.1.0,4.0.0).
[java] [eclipse.buildScript] Missing required plug-in org.eclipse.jdt.junit_[3.2.0,4.0.0).
[java] [eclipse.buildScript] Missing required plug-in org.eclipse.compare_[3.2.0,4.0.0).
[java] [eclipse.buildScript] Missing required plug-in org.eclipse.ltk.ui.refactoring_[3.2.0,4.0.0).
[java] [eclipse.buildScript] Missing required plug-in org.eclipse.equinox.p2.ui_[1.0.0,2.0.0).
[java] [eclipse.buildScript] Missing required plug-in org.eclipse.equinox.p2.metadata_[1.0.0,2.0.0).
[java] [eclipse.buildScript] Missing required plug-in org.eclipse.equinox.p2.engine_[1.0.100,2.0.0).
[java] [eclipse.buildScript] Missing required plug-in org.eclipse.equinox.p2.core_[1.0.0,2.0.0).
[java] [eclipse.buildScript] Missing required plug-in org.eclipse.equinox.p2.director_[1.0.100,2.0.0).
[java] [eclipse.buildScript] Missing required plug-in org.eclipse.equinox.p2.artifact.repository_[1.0.100,2.0.0).
[java] [eclipse.buildScript] Missing required plug-in org.eclipse.equinox.p2.metadata.repository_[1.0.100,2.0.0).
[java] [eclipse.buildScript] Missing required plug-in org.eclipse.equinox.frameworkadmin_[1.0.100,2.0.0).
[java] [eclipse.buildScript] Missing required plug-in org.eclipse.equinox.frameworkadmin.equinox_[1.0.100,2.0.0).
[java] [eclipse.buildScript] Missing required plug-in org.eclipse.equinox.p2.repository_[1.0.0,2.0.0).
[java] [eclipse.buildScript] Unsatisfied import package org.eclipse.jdt.debug.core_0.0.0.
我知道这些bundle / plug-ins缺少必需和/或可选的依赖项。我不明白的是如何找不到某些插件。
例如,列出了许多org.eclipse.XXXXX插件,我相信这些插件可以通过使用 baseLocation 属性来解决,我将其设置如下:
<full_path_from_root>\pdebuild\target\eclipse
eclipse是我构建的目标,并拥有我的所有第三方依赖。
此外,我还有一个单独的eclipse安装,作为启动构建的版本(例如,带有PDE构建文件的版本3.5.2)。这个eclipse中的“plugins”子文件夹确实缺少上面列出的依赖项。
因此,当尝试解决缺少的依赖关系时,无论是必需的还是可选的,在无头PDE构建期间它们如何解决?我觉得奇怪的是,我必须将用于启动无头PDE构建的eclipse中的缺失插件复制到target \ eclipse \ plugins子文件夹中,只是为了尝试解决此问题。当我这样做时,我收到更多“缺少必需的插件”消息。也许这只是归结为我不得不继续将库复制到我的target \ eclipse \ plugins子文件夹中,直到消息消失。
非常感谢那些能够就如何最好地解决这个问题提出任何建议或建议的人。
答案 0 :(得分:2)
当您指定基本位置时,可以使用eclipse安装作为目标,也可以使用一组p2 repos来定义基础位置,这将定义PDE构建将构建的内容。用于使用ant启动构建的eclipse(我们将其称为基础构建器)对正在构建的内容没有影响。
但是如果你的baseLocation指向包含所有插件的完整eclipse安装,它应该可以工作。你的baseLocation是一个有效的eclipse安装,还是插件和功能的转储基地?