Hi
I'm trying to use the versioning macros : version and range in my
Import-Package in the maven-bundle-plugin configuration, but I can not make
it work.
<Import-Package>com.mypackage.base*;version="$<range;[==,=+)>",
*</Import-Package>
Always complain with :
No translation found for macro: range;[==,=+)
But if I put the second argument to the macro : version="$<
range;[==,=+);1.0>" then it works but it puts [1.0, 1.1) in my MANIFEST,
and what I want is that it puts the version defined in the dependency
section in the pom, something like [4.0, 4.1)
I'm using version 3.0.0 of the plugin, but I've tried with previous
versions also.
I've also tried using CDATA :
<Import-Package><![CDATA[com.mypackage.base*;version="$<range;[==,=+)>",*]]></Import-Package>
But I get the same result.
If I use the policy it works great, but with all the packages, and what I
want is to restric this policy to a concrete package :
<_consumer-policy>$<range;[==,=+)></_consumer-policy>
Best regards.
[image: Inline image 2]
* Jonathan Vila ** <https://www.twitter.com/jonathan_vila>
<http://www.linkedin.com/in/jonathanvila>*
* [email protected] <[email protected]>*