maven - 了解 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”的任何错误,我不知道如何修复它。
解决方案
菜鸟错误。
错误是该模块dev.geeking.gds.toolchain.cortexm
未在 pom.xml 的模块部分中声明,并且 tycho 找不到此插件。
<modules>
<module>dev.geeking.gds.toolchain.cortexm</module>
</modules>
谢谢你们!
推荐阅读
- python - 按键时精灵变化
- python - Gunicorn 队列:每个唯一 id 只运行 1 个请求,有多个工作人员
- vba - 在查找/替换中使用 ReplaceAll,但删除源格式
- linux - 在 minion 上运行 highstate 时出错“未找到顶级文件或外部数据匹配”
- python - 如何添加这个 mayavi 3d 图的涟漪?
- java - 在 Spring Boot 和 Angular 应用程序中分块发送数据
- c# - c# FileSystemWatcher 在一段时间后停止触发事件
- spring-boot - 当 API 中未发送必填字段值时,如何在 swagger 中自定义错误消息?
- java - 更新到 Android Studio 3.2 后,Gradle 构建卡住并且永远不会完成
- java - 将字节数组转换为字符串 Java