Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
1.5.13
-
None
-
Patch
Description
Problem: commons-math3 and the netty-* dependencies in oak-segment-tar are embedded in the osgi bundle, but still declared with <scope>provided</scope>.
This makes non-osgi downstream dependencies (such as a maven project using this for local tests) fail with
java.lang.NoClassDefFoundError: org/apache/commons/math3/stat/descriptive/DescriptiveStatistics at org.apache.jackrabbit.oak.segment.SegmentWriterBuilder.build(SegmentWriterBuilder.java:146)
because maven does not include transitive dependencies with provided scope in the (test) classpath, nor can it read embedded bundles in jar.
Solution: They should get the default compile scope.