How to correctly specify eclipse-plugins in category.xml of tycho eclipse-repository?

杀马特。学长 韩版系。学妹 提交于 2020-01-04 04:42:13

问题


I want to create a p2 repository of some eclipse-plugins during a tycho build.

My category.xml looks like this:

<?xml version="1.0" encoding="UTF-8"?>
<site>
    <feature url="plugins/<artifact-id>-1.0.0.jar"
        id="<artifact-id>" version="1.0.0.qualifier">
        <category name="cat" />
    </feature>
    <category-def name="cat" label="example category" />
</site>

where <artifact-id> is the maven artifact id of the eclipse-plugin that shall be included in the p2 repo.

When executing the maven build I get the following error message:

[ERROR] Internal error: java.lang.RuntimeException: "No solution found
because the problem is unsatisfiable.": ["Unable to satisfy dependency
from  <repository-module-artifact-id> 1.0.0.qualifier to
<artifact-id>.feature.group[1.0.0,1.0.1).", "No
solution found because the problem is unsatisfiable."]

I have included the eclipse-plugin in the dependencies of the repository-module.

What am I missing here?


回答1:


as of now you can only reference features in category.xml.

recently there was a patch that will allow referencing individual bundles in a future version of tycho, see https://bugs.eclipse.org/bugs/show_bug.cgi?id=381377



来源:https://stackoverflow.com/questions/14381676/how-to-correctly-specify-eclipse-plugins-in-category-xml-of-tycho-eclipse-reposi

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!