-2

When running play compile, I get a compile-time error.

[error] test.scala:14: object BOMInputStream is not a member of package org.ap
ache.commons.io.input
[error] import org.apache.commons.io.input.BOMInputStream
[error]        ^
[error] test.scala:80: not found: type BOMInputStream
[error]     val bomIn = new BOMInputStream(fileInpStream, false)
[error]                     ^
[error] two errors found

However, I successfully ran a scalatest test using the BOMInputStream in the same play project within the /test directory.

When I comment out the offending lines in the above compile-time error, the test succeeds.

Note that I've updated my /project/Build.scala appropriately:

"org.apache.commons" % "commons-io" % "1.3.2"

4

1 回答 1

-1

从我的目录中删除包含BOMInputStream该类的 JAR 后PLAY-PROJECT/lib/,我能够编译。

于 2013-09-25T23:35:53.453 回答