如何使用SBT使用DynamoDB Janusgraph存储后端?

时间:2017-06-14 15:21:27

标签: sbt amazon-dynamodb titan janusgraph

我启动了一个使用JanusGraph作为库依赖项的Scala项目:

"org.janusgraph" % "janusgraph-core" % "0.1.1",

该项目目前正在使用inmemory存储后端。但是,我想使用DynamoDB来保存我的图表并最终在AWS上部署应用程序。

我找到了JanusGraph https://github.com/awslabs/dynamodb-janusgraph-storage-backend的DynamoDB插件,并按照指南运行Marvel Universe示例。但是,当我尝试将库添加到我的build.sbt文件时:

"com.amazonaws" % "dynamodb-janusgraph-storage-backend" % "1.1.0"

它说找不到图书馆。

2 个答案:

答案 0 :(得分:1)

我发布了对JanusGraph 0.1.1到Central / Sonatype的支持。您可以使用"com.amazonaws" % "dynamodb-janusgraph-storage-backend" % "1.1.0"来提取依赖项。

答案 1 :(得分:0)

如果使用scala gremlin,这将是构建文件

scalaVersion := "2.11.8"

libraryDependencies ++= Seq(
"org.apache.spark" %% "spark-core" % "2.1.1",
"org.apache.spark" %% "spark-sql" % "2.1.1",
"org.apache.spark" % "spark-streaming_2.11" % "2.1.1",
"org.apache.spark" % "spark-streaming-kafka-0-10_2.11" % "2.1.1",
"org.janusgraph" % "janusgraph-core" % "0.1.1",
"org.janusgraph" % "janusgraph-es" % "0.1.1",
"com.amazonaws" % "dynamodb-janusgraph-storage-backend" % "1.1.0",
"com.michaelpollmeier" % "gremlin-scala_2.11" % "3.2.5.1",
"com.tinkerpop.blueprints" % "blueprints-core" % "2.6.0",
"org.scalactic" %% "scalactic" % "3.0.0",
"org.scalatest" %% "scalatest" % "3.0.0"
)

resolvers ++= Seq(
 Resolver.mavenLocal,
 "jitpack" at "https://jitpack.io",
 Resolver.sonatypeRepo("releases"),
 Resolver.sonatypeRepo("snapshots")
)
addCompilerPlugin("org.scalamacros" % "paradise" % "2.1.0" cross    CrossVersion.full)