Search code examples
maventycho

tycho-p2-repository-plugin fails with "No content specified for p2 repository"


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?


Solution

  • 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...)