[ https://issues.apache.org/jira/browse/OAK-8754?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16970392#comment-16970392 ]
Andrei Dulceanu commented on OAK-8754: -------------------------------------- [~tomekr], I think that dependency is available only in test scope. The current commons-lang from oak-parent/pom.xml is 2.6: {noformat} <dependency> <groupId>commons-lang</groupId> <artifactId>commons-lang</artifactId> <version>2.6</version> </dependency> {noformat} Could you please run the above and confirm if it's happening for you as well? Three ways moving forward here: update the dependency version in oak-parent, add the correct dependency to oak-segment-azure or just remove the offending code, as this can be handled ad-hoc in our own method. I'd prefer the third option. Let me know your thoughts and I'll make the adjustments. > Segment-copy command is broken due to unsatisfied dependency to commons-lang > 3.x > -------------------------------------------------------------------------------- > > Key: OAK-8754 > URL: https://issues.apache.org/jira/browse/OAK-8754 > Project: Jackrabbit Oak > Issue Type: Bug > Components: segment-azure > Reporter: Andrei Dulceanu > Assignee: Andrei Dulceanu > Priority: Major > > Running the segment-copy command to transfer a repo from Azure to local > storage, I get this: > {noformat} > $ java -jar oak-run-1.20-SNAPSHOT.jar segment-copy az:<AZURE_URI>/directory . > Apache Jackrabbit Oak 1.20-SNAPSHOT > Started segment-copy transfer! > Source: Azure Segment Store@<AZURE_URI>/directory > Destination: TarMK Segment Store@. > Exception in thread "main" java.lang.NoClassDefFoundError: > org/apache/commons/lang3/StringUtils > at > org.apache.jackrabbit.oak.segment.azure.tool.SegmentStoreMigrator.migrateJournal(SegmentStoreMigrator.java:107) > at > org.apache.jackrabbit.oak.segment.azure.tool.SegmentStoreMigrator.lambda$migrate$0(SegmentStoreMigrator.java:90) > at > org.apache.jackrabbit.oak.segment.azure.tool.SegmentStoreMigrator.runWithRetry(SegmentStoreMigrator.java:218) > at > org.apache.jackrabbit.oak.segment.azure.tool.SegmentStoreMigrator.migrate(SegmentStoreMigrator.java:90) > at > org.apache.jackrabbit.oak.segment.azure.tool.SegmentCopy.run(SegmentCopy.java:203) > at > org.apache.jackrabbit.oak.run.SegmentCopyCommand.execute(SegmentCopyCommand.java:52) > at org.apache.jackrabbit.oak.run.Main.main(Main.java:49) > Caused by: java.lang.ClassNotFoundException: > org.apache.commons.lang3.StringUtils > at java.net.URLClassLoader.findClass(URLClassLoader.java:381) > at java.lang.ClassLoader.loadClass(ClassLoader.java:424) > at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349) > at java.lang.ClassLoader.loadClass(ClassLoader.java:357) > ... 7 more > {noformat} -- This message was sent by Atlassian Jira (v8.3.4#803005)