【问题标题】:Platform runtime and dependencies平台运行时和依赖项
【发布时间】:2019-06-13 10:35:29
【问题描述】:

在 Eclipse 插件开发中需要了解目标平台和依赖关系。 过去 3 天我都在拔头发。

如果我指定以下内容:-

    <repositories>
    <repository>
        <id>eclipse-helios</id>
        <layout>p2</layout>
        <url>http://download.eclipse.org/releases/helios</url>
    </repository>
    </repositories>

1) 对我来说,我要确保我的插件兼容从 helios on wards 运行,我的想法是不是错了? 2)应该没有解决我的平台依赖关系?

[ERROR] Cannot resolve project dependencies:
[ERROR]   Software being installed: plugin1 1.0.0.qualifier
[ERROR]   Missing requirement: plugin1 1.0.0.qualifier requires 
'osgi.bundle; org.eclipse.core.runtime 0.0.0' but it could not be found
[ERROR] 
[ERROR] See 
http://wiki.eclipse.org/Tycho/Dependency_Resolution_Troubleshooting for 
help

我的清单文件包含:-

Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: Plugin1
Bundle-SymbolicName: plugin1;singleton:=true
Bundle-Version: 1.0.0.qualifier
Bundle-Vendor: xxx
Require-Bundle: org.eclipse.core.runtime,
org.eclipse.ui
Automatic-Module-Name: plugin1
Bundle-RequiredExecutionEnvironment: JavaSE-1.8

3)

当我运行我的插件时,它在 helious 下工作。 请帮助我使用 tycho 和 maven 来实现这一点。我只是不明白它的帮助文本中的“eclipse speak”。

请有人帮助我 问候, 杰姆鲁格

【问题讨论】:

  • 我正在使用 Eclipse:面向 RCP 和 RAP 开发人员的 Eclipse IDE 版本:2019-03 (4.11.0) 构建 ID:20190314-1200。我的同事在开普勒,当我将我的项目发送给他们时,它对他们有用。

标签: tycho eclipse-pde


【解决方案1】:

伙计们,我在另一个 Eclipse 工作区中尝试过,一切都很好。所以这是一个工作空间问题。 我唯一的问题是我如何在独立 mvn 中执行此操作,因为我不断收到:

    mvn clean install

    Cannot resolve project dependencies:
    [ERROR]   Software being installed: plugin1 1.0.0.qualifier
    [ERROR]   Missing requirement: plugin1 1.0.0.qualifier requires 'osgi.bundle; 
    org.eclipse.core.runtime 0.0.0'

那么为什么在 eclipse 里面一切都很好但不是命令行我得到了上面的内容。

【讨论】:

    猜你喜欢
    • 2013-04-09
    • 2020-02-04
    • 2013-05-23
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-04-04
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多