Hello everyone.
I am trying to make the Maven Bundle Plugin use a version range i have
defined in the POM of my project.
Basically a project of mine has a small wicket module which i know works
through wicket 6-8. So i have defined the following dependency:
<dependency>
<groupId>org.apache.wicket</groupId>
<artifactId>wicket-core</artifactId>
<version>[6.0.0,9.0.0)</version>
<scope>provided</scope>
</dependency>
The problem is that the Maven Bundle Plugin doesn't seem to care all that
much, and i get the following dependency in the manifest:
org.apache.wicket;version="[8.0,9)",org.apache.wicket.ajax;version="[8.0,9)",org.apache.wicket.ajax.form;version="[8.0,9)",org.apache.wicket.behavior;version="[8.0,9)",org.apache.wicket.markup.html;version="[8.0,9)",org.apache.wicket.markup.html.basic;version="[8.0,9)",org.apache.wicket.markup.html.form;version="[8.0,9)",org.apache.wicket.markup.html.list;version="[8.0,9)",org.apache.wicket.markup.html.panel;version="[8.0,9)",org.apache.wicket.model;version="[8.0,9)",org.apache.wicket.model.util;version="[8.0,9)",org.apache.wicket.request.mapper.parameter;version="[8.0,9)",org.apache.wicket.util.string;version="[8.0,9)"
My intent was to get a version range matching the maven range, but it seems
that the Bundle Plugin just looks at the artifact which was actually
resolved and uses that, which ends up being [8.0,9).
Is there a way to make the Bundle Plugin parse the POM version range, or is
there a fairly none-intrusive way to specify the version for all those
packages?
Thank you
-Martin