JSR305 OSGi Exports brave

327 Views Asked by At

The brave core module has added exports for javax.annotation;version="[3.0.0,4)", this causing issue when deploying OSGi applications using brave in JBoss Fuse - as the System bundle already exports javax.annotation;version="1.0".

Wondering why devtime dependencies like findbugs(JSR305) packages be exported as part of runtime ??

Any workaround for this ?? Can we not sue JSR 305 bundles from servicemix to make brave OSGi bundles compliant with common containers like karaf et al??

1

There are 1 best solutions below

0
On

The google's findbugs JSR305 dependency was exporting javax.annotation;version="[3.0.0,4.0.0)" which was causing the issue as mentioned in the issue using service mix JSR305 bundles properly exports the javax.annotation;version="[1.1,2)"