site.xml 是 eclipse 更新站点的强制性要求吗?

is site.xml compulsory for eclipse update site?

我用过eclipseFeatures And Bundles Publisher to create a p2 metadata folder. But failed add the same folder as local site as eclipse keep on complaining Unable to find the site。 我可以找到 content.xml 和 artifacts.xml 但 site.xml 不是通过发布者命令生成的。我怀疑我是否必须手动创建 site.xml 。 仅供参考,我正在使用 Eclipse KeplerSR2。

是的,您必须有 site.xml 才能从 update_site

更新站点

To create an update site you must develop a site.xml file and build the site. PDE provides an editor and project for creating sites. A site will contain one or more features organized into categories.

查看如何创建site.xml

p2 发布者应该创建这样的结构。根据包属性,内容和工件存储库文件 [内容和工件] 可能会被压缩。

<repo-root-dir>
   features
      featureA.jar
      ...
   plugins
      pluginA.jar
      ...
   content[.xml|.jar]
   artifacts[.xml|.jar]

您不会获得也不需要更新站点文件。 确保从 Eclipse -> Preferences -> Available Softwares Sites 中清除您使用的位置。 Eclipse 正在缓存存储库元数据。