我正在尝试创建一个 Eclipse 插件,它依赖于普通的 Maven 工件。我创建了以下项目结构:
Parent POM
|- Dependencies (Third Party)
\- My Code
|- Bundle
\- Bundle Tests
我遵循了 Tycho 示例 itp02,但仅使用了第三方依赖项。据我了解,这个想法是将所有依赖项包装在一个包中,并将其用作我的包的输入。我设法正确构建和安装依赖包:创建了一个 jar,它包含从 Maven 存储库获得的所有 JAR 文件。但是当我尝试编译我的包时,我收到一条错误消息,说我的包清单中的包无法导入。
[ERROR] Missing requirement: MyPlugin 0.0.1.qualifier requires 'package org.apache.commons.lang.StringEscapeUtils 0.0.0' but it could not be found
[ERROR]
[ERROR] Internal error: java.lang.RuntimeException: "No solution found because the problem is unsatisfiable.": ["Unable to satisfy dependency from MyPlugin 0.0.1.qualifier to package org.apache.commons.lang.StringEscapeUtils 0.0.0.", "No solution found because the problem is unsatisfiable."] -> [Help 1]
org.apache.maven.InternalErrorException: Internal error: java.lang.RuntimeException: "No solution found because the problem is unsatisfiable.": ["Unable to satisfy dependency from MyPlugin 0.0.1.qualifier to package org.apache.commons.lang.StringEscapeUtils 0.0.0.", "No solution found because the problem is unsatisfiable."]
我错过了什么?