Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

maven

tycho

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?

like image 614
ezcode Avatar asked Apr 12 '12 13:04

ezcode


1 Answers

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

like image 198
oberlies Avatar answered Sep 19 '22 11:09

oberlies