Using maven-bundle-plugin version 2.1.0, in my import package I have the 
following: 



<Import-Package> 

<!-- JDK imports --> 

javax.xml.*;version="1.6", 

<!-- JAXB imports --> 

javax.xml.bind.*;version="2.1.0", 

javax.xml.bind.annotation.*;version="2.1.0" 

</Import-Package> 





In the MANIFEST.MF file that is generated, I see the following: 



Import-Package: 
javax.xml;version="1.6",javax.xml.bind;version="1.6",javax.xml.bind.annotation;version="1.6"
 





So, it appears if a parent package is defined first, then all child packages 
are automatically given the parent's version number.  However, if I change the 
order in the import package area, I can get the desired effect.  The following: 



<Import-Package> 

<!-- JAXB imports --> 

javax.xml.bind.*;version="2.1.0", 

javax.xml.bind.annotation.*;version="2.1.0" 

<!-- JDK Imports --> 

javax.xml.*;version="1.6" 

</Import-Package> 



Produces: 


Import-Package: 
javax.xml;version="1.6",javax.xml.bind;version="2.1",javax.xml.bind.annotation;version="2.1"
 



Is this the intended behaviour?  If so, why? 



v/r, 



Mike Van

Reply via email to