This link propose a solution based on macros : https://davidvaleri.wordpress.com/2011/04/07/secrets-of-the-felix-bundle-plug-in-macros-revealed/
That should solve the range issue in an elegant way. As I'll be away from my computer for 4 days I won't be able to test it... Le jeudi 11 décembre 2014, Stefan Seelmann <[email protected]> a écrit : > On 12/11/2014 09:09 PM, Emmanuel Lécharny wrote: > > Another question : > > > > we have imports in LDAP API which may be problematic at some point : > > > > org.apache.commons.lang;version="2.6" > > > > shouldn't we declare that instead ? : > > > > org.apache.commons.lang;version="[2.6,3)" > > > > If so, how do we make Felix generate the MANIFEST from what we decalre > > in the pom.xml ? > > > > (I'm refering to schema-converter which has such a commons.long > > declaration, and there are some <![CDATA[ ... ]]> declaration in the > > polm, not sure it's related) > > In schema-converter I tried to achieve such a version range. Adding it > to the instructions didn't work. Then I found somewhere in the internet > the hint with CDATA but that didn't work either. What worked then is to > remove org.apache.commons.lang from instructions and put the "*" to the > end of the <Import-Packages> instruction. > > Kind Regards, > Stefan > > > -- Regards, Cordialement, Emmanuel Lécharny www.iktek.com
