2013-01-17 25 views
3

我想在tycho構建過程中創建一些eclipse插件的p2存儲庫。如何在tycho eclipse-repository的category.xml中正確指定eclipse-plugins?

category.xml看起來像這樣:

<?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> 

其中<artifact-id>是應包括在P2回購的Eclipse的插件的Maven構件編號。

當執行Maven構建我收到以下錯誤信息:

[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."] 

我已經包括在庫模塊的依賴關係Eclipse的插件。

我在這裏錯過了什麼?

回答

2

截至目前,您只能引用category.xml中的功能。

最近有一個補丁,將允許在第谷的未來版本中引用的單束,看到https://bugs.eclipse.org/bugs/show_bug.cgi?id=381377

+0

感謝您指出我的錯誤。我創建了一個包含我的插件的功能。這聽起來有點超過我的單一插件設計,但對大型項目非常有意義。 – SpaceTrucker

相關問題