<error>出现在sbt doc

时间:2015-07-18 12:13:45

标签: scala apache-spark sbt

我正在尝试为我在sbt / scala中编写的一些代码生成文档。

这是sbt配置文件

name := "My project"
version := "1.0"

libraryDependencies += "org.scala-lang" % "scala-compiler" % scalaVersion.value

libraryDependencies += "org.apache.spark" %% "spark-core" % "1.2.0"
libraryDependencies += "org.apache.spark" %% "spark-graphx" % "1.2.0"

生成的文档没有错误,但生成的文档文件包含以下内容:

def getGraph(): <error>
def getLabelMap(): HashMap[<error>, String]
def setGraph(graph: <error>): Unit
def setLabelMap(map: HashMap[<error>, String]): Unit

所有<error>字段都属于org.apache.spark.graphx和org.apache.spark包(在上面的示例行而不是<error>我应该得到GraphVertexId等。)

为了解决这个问题,我应该在sbt配置文件中添加什么? 干杯

1 个答案:

答案 0 :(得分:0)

对于任何有兴趣的人,我找到了答案,我不得不添加类似的东西

scalacOptions in (Compile, doc) := Seq(
  "-external-urls:scala=https://spark.apache.org/docs/1.1.0/api/scala",
  "-external-urls:org.apache.spark=https://spark.apache.org/docs/0.9.1/api/graphx"
)
相关问题