我正在尝试在sbt项目中使用带有C-SPARQL的spark, 尝试构建项目时,我得到了未解决的依赖项错误
[info] Resolving org.openrdf#sesame;2.3.1 ...
[warn] module not found: org.openrdf#sesame;2.3.1
[warn] ==== local: tried
[warn] /home/linux/.ivy2/local/org.openrdf/sesame/2.3.1/ivys/ivy.xml
[warn] ==== public: tried
[warn] https://repo1.maven.org/maven2/org/openrdf/sesame/2.3.1/sesame-2.3.1.pom
[info] Resolving org.scala-lang#scala-compiler;2.10.4 ...
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: UNRESOLVED DEPENDENCIES ::
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: org.openrdf#sesame;2.3.1: not found
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn]
[warn] Note: Unresolved dependencies path:
[warn] org.openrdf:sesame:2.3.1
[warn] +- eu.larkc.csparql:csparql-sparql-sesame:0.1 (/home/linux/workspace/sbtC-SPARQL/plugins.sbt#L17-18)
[warn] +- eu.larkc.csparql:csparql-core:0.1 (/home/linux/workspace/sbtC-SPARQL/plugins.sbt#L15-16)
[warn] +- default:sbtc-sparql_2.10:0.1-SNAPSHOT
[trace] Stack trace suppressed: run last *:update for the full output.
[error] (*:update) sbt.ResolveException: unresolved dependency: org.openrdf#sesame;2.3.1: not found
我在pluguin.sbt文件中添加了一些库,例如:
libraryDependencies += "eu.larkc.csparql" % "csparql-cep-api" % "0.1"
libraryDependencies += "eu.larkc.csparql" % "csparql-core" % "0.1"
libraryDependencies += "eu.larkc.csparql" % "csparql-sparql-sesame" % "0.1"
libraryDependencies += "org.fusesource.jansi" % "jansi" % "1.4"
libraryDependencies += "org.scala-lang" % "jline" % "2.10.4"
答案 0 :(得分:2)
请检查您正在使用的openrdf的版本。它未列在maven上。您可以尝试更新版本的库
libraryDependencies += "org.openrdf.sesame" % "sesame-runtime" % "2.8.2"