有没有办法确定我应该为特定的 scala 版本使用哪个库版本?例如,我想使用 commons-lang3 库,但无论我选择什么版本都会遇到错误。
我正在使用杏仁笔记本,这是遇到错误的片段单元格:
#%%
import $ivy.`org.plotly-scala::plotly-render:0.8.1`
import $ivy.`com.github.haifengl::smile-scala:2.6.0`
import $ivy.`io.github.cibotech::evilplot:0.8.1`
import $ivy.`be.botkop::numsca:0.1.5`
import $ivy.`org.apache.commons::commons-lang3:3.2.1`
import $ivy.`org.apache.spark::spark-sql:2.4.0`
import $ivy.`sh.almond::almond-spark:0.10.9`
import org.apache.log4j.{Level, Logger}
Logger.getLogger("org").setLevel(Level.OFF)
#%%
Downloading https://repo1.maven.org/maven2/org/apache/commons/commons-lang3_2.12/3.2.1/commons-lang3_2.12-3.2.1.pom
Downloaded https://repo1.maven.org/maven2/org/apache/commons/commons-lang3_2.12/3.2.1/commons-lang3_2.12-3.2.1.pom
Downloading https://repo1.maven.org/maven2/org/apache/commons/commons-lang3_2.12/3.2.1/commons-lang3_2.12-3.2.1.pom.sha1
Downloaded https://repo1.maven.org/maven2/org/apache/commons/commons-lang3_2.12/3.2.1/commons-lang3_2.12-3.2.1.pom.sha1
Failed to resolve ivy dependencies:Error downloading org.apache.commons:commons-lang3_2.12:3.2.1
not found: /home/joesan/.ivy2/local/org.apache.commons/commons-lang3_2.12/3.2.1/ivys/ivy.xml
not found: https://repo1.maven.org/maven2/org/apache/commons/commons-lang3_2.12/3.2.1/commons-lang3_2.12-3.2.1.pom