【问题标题】:Understanding Tycho error compilation: Missing requirement了解 Tycho 错误编译:缺少要求
【发布时间】:2020-02-28 23:51:27
【问题描述】:

我正在使用 tycho 编译基于 Eclipse 的产品,但编译时出现错误,我不知道如何解决。

我的错误代码是:

[ERROR] Cannot resolve project dependencies:
[ERROR]   Software being installed: eu.geeking.gds.feature.group 1.0.0.qualifier
[ERROR]   Missing requirement: eu.geeking.gds.feature.group 1.0.0.qualifier requires 'org.eclipse.equinox.p2.iu; dev.geeking.gds.toolchain.cortexm 0.0.0' but it could not be found

在https://wiki.eclipse.org/Tycho/Dependency_Resolution_Troubleshooting 中说下一句:

 Missing requirement: <artifact> requires '<dependency>' but it could not be found.

 This line prints one of the mandatory dependencies which cannot be resolved. This can either be a dependency of the seed artifact, or a dependency of an artifact which is a direct or transitive dependency of the seed artifact. See below for details on the <dependency> part of the message.

但我的信息是

"Missing requirement: <artifact> requires '<dependency>'; <plugin-name> but it could not be found."

我知道插件“dev.geeking.gds.toolchain.cortexm”需要“org.eclipse.equinox.p2.iu”依赖,但我找不到它。我写了'dev.geeking.gds.toolchain.cortexm'插件,我在eclipse中没有关于'org.eclipse.equinox.p2.iu'的任何错误,我不知道如何修复它。

【问题讨论】:

  • 我认为 org.eclipse.equinox.p2.iu 只是指 p2 安装程序的“可安装单元”(iu),它不是插件。所以我认为这只是说“可安装单元”dev.geeking.gds.toolchain.cortexm 是必需的。
  • 我按照 Greg 的阅读方式阅读:1.0.0 版的 eu.geeking.gds.feature.group 需要任何版本 (0.0.0) 的缺失可安装单元 dev.geeking.gds.toolchain.cortexm。
  • 非常感谢!我要接手这个问题,我会说点什么。

标签: maven eclipse-plugin eclipse-rcp tycho


【解决方案1】:

新手错误。

错误是模块dev.geeking.gds.toolchain.cortexm没有在pom.xml的模块部分声明,tycho找不到这个插件。

<modules>
        <module>dev.geeking.gds.toolchain.cortexm</module>
</modules>

谢谢你们!

【讨论】:

    猜你喜欢
    • 2018-02-16
    • 2013-08-11
    • 2013-01-10
    • 1970-01-01
    • 2014-10-12
    • 1970-01-01
    • 2021-02-12
    • 1970-01-01
    相关资源
    最近更新 更多