[
https://issues.apache.org/jira/browse/OAK-10371?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17762163#comment-17762163
]
Julian Reschke commented on OAK-10371:
--------------------------------------
So, tried embedding:
{noformat}
diff --git a/oak-blob-cloud-azure/pom.xml b/oak-blob-cloud-azure/pom.xml
index 6900a0fba8..c3b460363e 100644
--- a/oak-blob-cloud-azure/pom.xml
+++ b/oak-blob-cloud-azure/pom.xml
@@ -37,17 +37,14 @@
<artifactId>maven-bundle-plugin</artifactId>
<configuration>
<instructions>
- <Import-Package>
- <!-- OAK-10369 -->${guava.osgi.import},
- *
- </Import-Package>
<Export-Package>
org.apache.jackrabbit.oak.blob.cloud.azure.blobstorage
</Export-Package>
<DynamicImport-Package>sun.io</DynamicImport-Package>
<Embed-Dependency>
azure-storage,
- azure-keyvault-core
+ azure-keyvault-core,
+ guava
</Embed-Dependency>
</instructions>
</configuration>
@@ -138,6 +135,11 @@
<groupId>com.microsoft.azure</groupId>
<artifactId>azure-keyvault-core</artifactId>
</dependency>
+ <dependency>
+ <groupId>com.google.guava</groupId>
+ <artifactId>guava</artifactId>
+ <version>24.1.1-jre</version>
+ </dependency>
<!-- Test dependencies -->
<dependency>
{noformat}
but get...:
{noformat}
[ERROR] Manifest
org.apache.jackrabbit:oak-blob-cloud-azure:bundle:1.57-SNAPSHOT : Got
unexpected exception while
analyzing:org.apache.felix.scrplugin.SCRDescriptorException: Unable to load
compiled class: com.google.common.base.CharMatcher$Any
at
org.apache.felix.scrplugin.helper.ClassScanner.scanSources(ClassScanner.java:156)
at
org.apache.felix.scrplugin.SCRDescriptorGenerator.execute(SCRDescriptorGenerator.java:146)
at
org.apache.felix.scrplugin.bnd.SCRDescriptorBndPlugin.analyzeJar(SCRDescriptorBndPlugin.java:179)
at aQute.bnd.osgi.Analyzer.doPlugins(Analyzer.java:992)
at aQute.bnd.osgi.Analyzer.analyze(Analyzer.java:208)
at aQute.bnd.osgi.Builder.analyze(Builder.java:444)
at aQute.bnd.osgi.Analyzer.calcManifest(Analyzer.java:1035)
at aQute.bnd.osgi.Builder.build(Builder.java:127)
at
org.apache.felix.bundleplugin.ManifestPlugin.getAnalyzer(ManifestPlugin.java:321)
at
org.apache.felix.bundleplugin.ManifestPlugin.execute(ManifestPlugin.java:125)
at
org.apache.felix.bundleplugin.BundlePlugin.execute(BundlePlugin.java:380)
{noformat}
> oak-segment-azure/oak-blob-cloud-azure require Guava
> ----------------------------------------------------
>
> Key: OAK-10371
> URL: https://issues.apache.org/jira/browse/OAK-10371
> Project: Jackrabbit Oak
> Issue Type: Task
> Components: blob-cloud-azure, segment-azure
> Reporter: Julian Reschke
> Assignee: Julian Reschke
> Priority: Critical
> Fix For: 1.58.0
>
>
> These components require Guava due to their dependency on
> microsoft-azure-keyvault-core. That dependency is embedded, but Guava is not.
> Choices:
> - get microsoft-azure-keyvault-core fixed not to use Guava (unlikely, but see
> https://github.com/Azure/azure-sdk-for-java/issues/26846)
> - embed Guava
> - make sure that the OSGi import statement is as relaxed as possible (note
> that, for historic reasons, our components for now are likely used in
> environments using Guava 15)
--
This message was sent by Atlassian Jira
(v8.20.10#820010)