tycho - 平台运行时和依赖项
问题描述
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
当我运行我的插件时,它在 helious 下工作。请帮助我使用 tycho 和 maven 来实现这一点。我只是不明白它的帮助文本中的“eclipse speak”。
请有人帮助我,请问候,Jemrug
解决方案
伙计们,我在另一个 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里面一切都很好但不是命令行我得到了上面的。
推荐阅读
- azure - Azure Blob 存储或 Azure 文件存储
- python - 如何在 Pandas 数据框中重新排序字符串并插入新字符串
- pandas - data.sort_values(by=['Date'], ascending=False) 不起作用
- python - Python从Beautifulsoup网页抓取中排除某些图像路径
- android - 在本机反应中禁用复制/粘贴选项
- java - 谁能告诉我应该如何更改查询以便将数据库中的值与字符串进行比较
- sql - 表A的列和表B的行之间的外键关系?
- sql - 在 Oracle 上出现 raise_application 错误后尝试插入表不起作用
- c# - 为什么连接 MySQL 数据库时会出现这样的错误?
- javascript - 通过 .on 方法设置事件时如何更改事件的顺序?