tycho: [WARNING] Mirror tool: Problems resolving provisioning plan

Hi,

I have a small PDE based project with a Tycho build that should show how to publish an OSGi service via JAX-RS Whiteboard (Aries implementation). As the Aries implementation is only available via Maven and not via a p2 update site, I use the Maven locations in the target definition. Inside the IDE everything works as expected, the target definition resolves, the product definition is correctly setup, validates and I can start the product inside the IDE.

But the build using pom-less Tycho fails. I get the following warning:

[WARNING] Mirror tool: Problems resolving provisioning plan.: [Unable to satisfy dependency from org.fipro.modifier.jaxrs.product 1.0.0.202206200943 to org.eclipse.
equinox.p2.iu; org.osgi.service.jaxrs [1.0.0.201802012106,1.0.0.201802012106].; Unable to satisfy dependency from org.fipro.modifier.jaxrs.product 1.0.0.20220620094
3 to org.eclipse.equinox.p2.iu; org.apache.aries.jax.rs.whiteboard [1.0.1,1.0.1].; Unable to satisfy dependency from toolingwin32.win32.x86_64org.apache.aries.jax.r
s.whiteboard 1.0.0.202206200943 to osgi.bundle; org.apache.aries.jax.rs.whiteboard 1.0.1.; Unable to satisfy dependency from toolingwin32.win32.x86_64org.apache.ari
es.jax.rs.whiteboard 1.0.0.202206200943 to osgi.bundle; org.apache.aries.jax.rs.whiteboard 1.0.1.]

then the build fails with this message:

[ERROR] Failed to execute goal org.eclipse.tycho:tycho-p2-director-plugin:2.7.3:materialize-products (materialize-products) on project org.fipro.modifier.jaxrs.prod
uct: Installation of product org.fipro.modifier.jaxrs.product for environment win32/win32/x86_64 failed: Call to p2 director application failed with exit code 13.

The explanation in the wiki talks about feature patches, but the example is a plug-in based product without features. So I am not sure what causes the issue and how it could be solved.

I have the minimal example attached to reproduce the issue.

jaxrs_pde_example.zip

About this issue

  • Original URL
  • State: open
  • Created 2 years ago
  • Comments: 20 (19 by maintainers)

Most upvoted comments

Yes tycho should work with this, and yes tycho should support plugin based products, I just think these aspects are (not yet) very well covered 😃