了解Tycho错误编译:缺少要求

时间:2019-11-03 12:49:27

标签: maven eclipse-plugin eclipse-rcp tycho

我正在用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'的任何错误,我也不知道该如何解决。 >

1 个答案:

答案 0 :(得分:1)

菜鸟错误。

错误是pom.xml的模块部分未声明模块dev.geeking.gds.toolchain.cortexm,而tycho找不到此插件。

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

谢谢你们!