I'm trying to OSGify
my projects.
I'm using Fuse jboss-fuse-6.2.1.redhat-084
, and if I look at osgi:headers
for the package, I get the red error org.beanio
.
Import-Package =
com.thoughtworks.xstream;version="[1.4,2)",
javax.activation,
javax.mail;version="[1.4,2)",
javax.mail.internet;version="[1.4,2)",
javax.xml.bind,
org.apache.activemq.camel.component,
org.apache.camel;version="[2.15,3)",
org.apache.camel.builder;version="[2.15,3)",
org.apache.camel.dataformat.bindy.fixed,
org.apache.camel.spring.spi;version="[2.15,3)",
org.apache.cxf.interceptor;version="[3.0,4)",
org.apache.log4j;version="[1.2,2)",
org.beanio;version="[2.1,3)",
(others)
Error:
missing requirement osgi.wiring.package; (&(osgi.wiring.package=org.beanio)(version>=2.1.0)(!(version>=3.0.0))))
I'm not explicitly importing beanio
myself: it gets it from the org.jboss.fuse.bom
for this Fuse. The camel-beanio version
is 2.15.1.redhat-621084
and that uses org.beanio v2.1.0
.
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-beanio</artifactId>
</dependency>
I've grep searched the osgi:classes
and nothing is using v3.0. Also, v3.0 doesn't even exist. So, I don't know where it's getting that "[2.1,3)" from.
I worked out how to specify 2.1.0, but it then just complains that it can't find 2.1.0.
So what do I do? Nothing is exporting 2.1.0. But I can't get rid of it from Import-Package because * includes it after searching the code.