Open SolomonTomer opened 5 years ago
FYI, I think when pulling dependencies in clojure I receive \a similar warning, and suggests a similar solution to yours with the lein build tools:
project.clj:
:dependencies [[org.clojure/clojure "1.9.0"]
;; https://mvnrepository.com/artifact/com.microsoft.azure/azure-storage
[com.microsoft.azure/azure-storage "8.0.0"]
[com.microsoft.azure/azure-storage-blob "10.1.0"]
[com.microsoft.azure/azure-keyvault-complete "1.1.1" :extension "pom" ]
]
lein deps
WARNING!!! version ranges found for:
[com.microsoft.azure/azure-keyvault-complete "1.1.1" :extension "pom"] ->
[com.microsoft.azure/azure-keyvault-extensions "1.1.1"] ->
[com.microsoft.azure/azure-mgmt-resources "1.3.0"] ->
[com.microsoft.azure/azure-client-runtime "[1.1.0,2.0.0)"]
Consider using [com.microsoft.azure/azure-keyvault-complete "1.1.1" :extension "pom" :exclusions [com.microsoft.azure/azure-client-runtime]].
Hey,
Problem: building a fat jar results in a run time error of NoSuchMethod.
Details:
I'm using the SDK for Scala on Spark integration on HDI. When I build a simple application creating a KeyVaultClient using ApplicationTokenCredentials object from com.microsoft.azure.credentials and run it locally everything works. Building a fat jar with mvn works but shows the following:
Deploying the JAR to HDI and running it fails with the following trimmed stacktrace:
My pom.xml contains spark dependencies and the following:
At this moment, as a work around I added this to my pom.xml file (before the two above) which forces the downgrade of azure-client that com.microsoft.azure uses (1.6):