首页 > 解决方案 > 平台运行时和依赖项

问题描述

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”。

请有人帮助我,请问候,Jemrug

标签: tychoeclipse-pde

解决方案


伙计们,我在另一个 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里面一切都很好但不是命令行我得到了上面的。


推荐阅读