Compiler errors 加载类文件时检测到缺少或无效的依赖项

Compiler errors 加载类文件时检测到缺少或无效的依赖项,compiler-errors,sbt,classpath,Compiler Errors,Sbt,Classpath,我有一个多模块SBT项目,其中的模块名为commons、teradata、mysql、postgres等。 commons是一个公共模块,其他模块都依赖它。 在编译teradata模块时,我仅得到以下错误。 commons和其余模块编译良好,没有任何错误 [error] missing or invalid dependency detected while loading class file 'HDFSUtil.class'. [error] Could not access term ha

我有一个多模块SBT项目,其中的模块名为commons、teradata、mysql、postgres等。 commons是一个公共模块,其他模块都依赖它。 在编译teradata模块时,我仅得到以下错误。 commons和其余模块编译良好,没有任何错误

[error] missing or invalid dependency detected while loading class file 'HDFSUtil.class'.
[error] Could not access term hadoop in package org.apache,
[error] because it (or its dependencies) are missing. Check your build definition for
[error] missing or conflicting dependencies. (Re-run with `-Ylog-classpath` to see the problematic classpath.)
[error] A full rebuild may help if 'HDFSUtil.class' was compiled against an incompatible version of org.apache.
[error] missing or invalid dependency detected while loading class file 'HDFSUtil.class'.
[error] Could not access term io in value org.apache.hadoop,
[error] because it (or its dependencies) are missing. Check your build definition for
[error] missing or conflicting dependencies. (Re-run with `-Ylog-classpath` to see the problematic classpath.)
[error] A full rebuild may help if 'HDFSUtil.class' was compiled against an incompatible version of org.apache.hadoop.
[error] two errors found
[error] (teradata/compile:compileIncremental) Compilation failed
[error] Total time: 5 s, completed Jul 29, 2016 7:48:50 PM
commons模块依赖于HDFS库,其库依赖范围设置如下所示

"org.apache.hadoop" % "hadoop-client" % "2.7.1" % "provided",
如果删除提供的作用域,上述编译时错误将消失。

除了对teradata jdbc和commons模块的非托管依赖之外,teradata模块本身没有任何依赖关系。 我已经尝试删除我的.sbt和.iv2文件,并再次执行干净的构建,但错误不会消失。
这里可能有什么问题?

您能否提供sbt构建文件中的相关信息,以便我们尝试复制并发现问题?