You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "Alexander Klimetschek (JIRA)" <ji...@apache.org> on 2016/11/15 22:10:59 UTC

[jira] [Updated] (OAK-5114) oak-segment-tar should declare embedded dependencies using compile scope

     [ https://issues.apache.org/jira/browse/OAK-5114?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alexander Klimetschek updated OAK-5114:
---------------------------------------
    Assignee: Francesco Mari

> oak-segment-tar should declare embedded dependencies using compile scope
> ------------------------------------------------------------------------
>
>                 Key: OAK-5114
>                 URL: https://issues.apache.org/jira/browse/OAK-5114
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: segment-tar
>    Affects Versions: 1.5.13
>            Reporter: Alexander Klimetschek
>            Assignee: Francesco Mari
>            Priority: Minor
>
> *Problem:* {{commons-math3}} and the {{netty-*}} dependencies in [oak-segment-tar are embedded|https://github.com/apache/jackrabbit-oak/blob/00c3caf8c359472d73857b325ab831b129d83511/oak-segment-tar/pom.xml#L48-L49] 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 
> {noformat}
> java.lang.NoClassDefFoundError: org/apache/commons/math3/stat/descriptive/DescriptiveStatistics
>     at org.apache.jackrabbit.oak.segment.SegmentWriterBuilder.build(SegmentWriterBuilder.java:146)
> {noformat}
> 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.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)