我正在尝试创建一个Eclipse插件,它依赖于普通的Maven工件.我创建了以下项目结构:
Parent POM
|- Dependencies (Third Party)
\- My Code
|- Bundle
\- Bundle Tests
Run Code Online (Sandbox Code Playgroud)
我已经关注了Tycho示例itp02,但只使用了第三方依赖项.据我所知,这个想法是将所有依赖项包装在一个包中,并将其用作我的包的输入.我设法正确构建和安装Dependencies包:创建一个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 …Run Code Online (Sandbox Code Playgroud)