【发布时间】:2013-08-26 22:01:04
【问题描述】:
我的 Play/SBT 项目需要依赖以源代码形式分发的第三方 Java 库,并且可以使用 Ant 或 Maven 构建。它的根目录包含pom.xml和build.xml。
我正在考虑将此库添加为 git 子模块,并让 SBT 将其构建为子项目。我尝试添加
externalPom(baseDirectory(_ / "pathToLibrary" / "pom.xml"))
我的构建设置,但我最终得到以下编译器错误:
[info] Compiling 32 Scala sources and 5 Java sources to /home/thesamet/project]
[error] (compile:compile) scala.reflect.internal.MissingRequirementError: object scala.runtime in compiler mirror not found.
[error] Total time: 1 s, completed Aug 23, 2013 11:46:20 AM
【问题讨论】: