1

我有一些想要存储在本地 P2 存储库中的 OSGI 包。我已遵循本指南:

https://docs.sonatype.org/display/TYCHO/How+to+make+existing+OSGi+bundles+consumable+by+Tycho

使用 eclipsec.exe 将带有捆绑包的文件夹转换为 p2 存储库。生成的结构是这样的:

c:\test\repo
c:\test\repo\plugins
c:\test\repo\plugins\my.bundle.jar
c:\test\repo\artifacts.jar
c:\test\repo\content.jar

现在我想在 eclipse Helios 中添加这个存储库。在 Eclipse 更新管理器中,我选择添加并按下“本地...”按钮,在其中指定存储库的路径:

Name: testRepo
Location: file:/C:/test/repo/

然后我取消选中“按类别分组项目”,但它只是说“没有可用的项目”。

如何将此本地存储库添加到 Eclipse?

4

1 回答 1

2

You need to create a new "Feature project" (New-->other-->plug-in development-->"Feature project") Then you need to link this to your project from its project properties.

Then you need to create a new "Update Site Project" (there is a link on feature.xml Overview). Then you need to link this to your project and the feature from its project properties.

then add a new category, and the feature you created in it, then say build and it builds the update site for you...

于 2010-11-29T23:40:24.173 回答