reficio / p2-maven-plugin

Maven3 plugin that automates the third-party dependency management for Eclipse RCP
http://reficio.org
230 stars 100 forks source link

Option to remove osgi.ee capability requirements #317

Open cybersearch2 opened 1 year ago

cybersearch2 commented 1 year ago

I am using the p2-maven-plugin to set up a p2 repository on my devejopment pc. I was unable to add this repository to an Eclipse target because one of the plugins this execution capability requirement - (&(osgi.ee=JavaSE)(version=1.2)).

The following error was reported by Eclipse in the project workspace log:

!SUBENTRY 1 org.eclipse.equinox.p2.director 4 0 2023-03-29 13:00:38.676 !MESSAGE Missing requirement: net.sf.kxml.2 2.3.0 (net.sf.kxml.2 2.3.0) requires 'osgi.ee; (&(osgi.ee=JavaSE)(version=1.2))' but it could not be found

As satisfying execution capability requirements causes ongoing problems that never seem to go away it would be be helpful to have an option to be able to filter out all such requirements from bundles being placed in the p2 repository.

sparsick commented 1 year ago

Hi @cybersearch2

you can skip generating the osgi.ee capability with followinng bnd instruction:

<instructions>
      <_noee>true</_noee>
  </instructions>

The quickstart example shows how you can add bnd instruction into the p2 maven plugin configuration.