Javadoc找不到用scala编写的类

时间:2015-03-16 22:53:42

标签: java scala javadoc

我正在开发一个带有混合java和scala代码的项目。我正在使用maven进行依赖管理,使用IntelliJ IDEA进行开发。 我添加了 maven-javadoc插件来生成java文档。但是,它找不到所有scala类。它继续抛出错误如下:

WARNING] Javadoc Warnings
[WARNING] /Users/mshinde/myproject-code/MLHighway/src/main/java/com/myproject/analytics/model/Project.java:12: cannot find symbol
[WARNING] symbol  : class SparkJoiner
[WARNING] location: package com.myproject.analytics.jobdriver
[WARNING] import com.myproject.analytics.jobdriver.SparkJoiner;
[WARNING] ^
[WARNING] /Users/mshinde/myproject-code/MLHighway/src/main/java/com/myproject/analytics/model/DataSet.java:12: cannot find symbol
[WARNING] symbol  : class Transformer
[WARNING] location: package com.myproject.analytics.jobdriver
[WARNING] import com.myproject.analytics.jobdriver.Transformer;
[WARNING] ^
[WARNING] /Users/mshinde/myproject-code/MLHighway/src/main/java/com/myproject/analytics/dataview/ImpalaView.java:3: cannot find symbol
[WARNING] symbol  : class SparkClassificationMetrics
[WARNING] location: package com.myproject.analytics.framework.evaluator
[WARNING] import com.myproject.analytics.framework.evaluator.SparkClassificationMetrics;
[WARNING] ^
[WARNING] /Users/mshinde/myproject-code/MLHighway/src/main/java/com/myproject/analytics/dataview/ImpalaView.java:212: package SparkClassificationMetrics does not exist
[WARNING] SparkClassificationMetrics.SparkMetrics sparkMetrics) {
[WARNING] ^

我的目录结构如下:

src/
  main/
    java/
      com/myproject/analytics
    scala/
      com/myproject/analytics

我能够编译项目并运行它。我只是想知道如何摆脱警告?如何让javadoc能够找到scala类? 提前谢谢。

0 个答案:

没有答案