tycho-p2-repository-plugin fails with “No content specified for p2 repository”

ぃ、小莉子 提交于 2019-12-30 04:05:06

问题


I am trying to build a p2 repository using Tycho and the tycho-p2-repository-plugin in an eclipse-repository packaging type. When I run the build, it is giving me the following exception:

Failed to execute goal org.eclipse.tycho:tycho-p2-repository-plugin:0.13.0:assemble-repository (default-assemble-repository) on project com.mycompany: No content specified for p2 repository

Can someone point me to the cause of this problem?


回答1:


You need either of the following files in the root of the eclipse-repository project:

  • A category.xml files with at least one feature referenced in it
  • A *.product file

These files define what should be included in the p2 repository, so if there is none of these, the p2 repository would be empty. This is probably not what you wanted, so Tycho fails the build. (Admittedly, the error message could be more helpful...)




回答2:


I had this problem too, unfortunately it was one of many problems and I do not remember which thing I did to fix it.

Make sure you are using 0.14.1 of tycho.

My working version is a very empty pom.xml, much like Packaging Types

I have not needed to configure the eclipse-repository via tycho-p2-repository-plugin.

Do you have a valid target definition defined in your reactor build somewhere? Is your *.product file valid? The product file needs to be in the same directory as your eclipse-repository pom, I think it gets found via black magic.

Also make sure your product feature is separate from your eclipse-repository. under PDE builds you could have the *.product file and the with the feature that is the root for your product.



来源:https://stackoverflow.com/questions/10124702/tycho-p2-repository-plugin-fails-with-no-content-specified-for-p2-repository

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