Hi.

I've run into trouble trying to use a dependency with my bundle,
namely opencsv. I added the dependency to my pom.xml and built my
bundle with mvn package and copied the jar file to karaf's deploy.

My bundle wouldn't start due to unresolved requirements. First it
wanted to have com.opencsv.enums, which I resolved with bundle:install
wrap:mvn:com.opencsv/opencsv. Next it wanted to have
org.apache.commons.lang3, which was resolved with bundle:install
wrap:mvn:org.apache.commons/commons-lang3.

After this, my bundle would start but fail, since I get a
NoClassDefFoundError at runtime from opencsv, where it tries to use
apache commons' StringUtils.

How could I get to opencsv successfully use commons? Anything else I
should tell about my scenario?

Reply via email to