1
根據docs,默認位置是: src/main/resources。如何更改SBT的sbt-xjc插件中的源代碼目錄?
我的XSD在src/main/schema中,所以我需要更改源設置。
所以我使用了以下內容:
sources in (xjc, Compile) <+= sourceDirectory/"main"/"schema"
這導致:
overloaded method value in with alternatives:
[error] (p: sbt.Reference,t: sbt.Scoped)sbt.ScopedTask[Seq[java.io.File]] <and>
[error] (p: sbt.Reference,c: sbt.ConfigKey)sbt.ScopedTask[Seq[java.io.File]] <and>
[error] (c: sbt.ConfigKey,t: sbt.Scoped)sbt.ScopedTask[Seq[java.io.File]]
[error] cannot be applied to (sbt.TaskKey[Seq[java.io.File]], sbt.Configuration)
[error] Error occurred in an application involving default arguments.
[error] sources in (xjc, Compile) <+= sourceDirectory/"main"/"schema"
[error] ^
[error] one error found