Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option to remove osgi.ee capability requirements #317

Open
cybersearch2 opened this issue Mar 29, 2023 · 1 comment
Open

Option to remove osgi.ee capability requirements #317

cybersearch2 opened this issue Mar 29, 2023 · 1 comment

Comments

@cybersearch2
Copy link

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
Copy link
Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants