我想测试并运行如下所述的"difr“实用程序:https://github.com/wspringer/difr
但是,我得到下面的错误。请你就如何克服这个问题提出建议好吗?
[info] Done updating.
/home/nskalis/app/difr-master/build.sbt:14: error: not found: value defaultExcludes
defaultExcludes in Compile in unmanagedResources := "*.scaml"
^
[error] Type error in expression
Project loading failed: (r)etry, (q)uit, (l)ast, or (i)gnore? i
[warn] Ignoring load failure: no project loaded.
[error] Expected ID character
[error] Not a valid command: build
[error] build.sbt
[error] ^
[nskalis@app difr-master]$ sbt build.sbt
[info] Loading project definition from /home/nskalis/app/difr-master/project
/home/nskalis/app/difr-master/build.sbt:14: error: not found: value defaultExcludes
defaultExcludes in Compile in unmanagedResources := "*.scaml"
^
[error] Type error in expression
Project loading failed: (r)etry, (q)uit, (l)ast, or (i)gnore? r
[info] Loading project definition from /home/nskalis/app/difr-master/project
/home/nskalis/app/difr-master/build.sbt:14: error: not found: value defaultExcludes
defaultExcludes in Compile in unmanagedResources := "*.scaml"
^
[error] Type error in expression
Project loading failed: (r)etry, (q)uit, (l)ast, or (i)gnore? l
[info] Loading project definition from /home/nskalis/app/difr-master/project
[debug]
[debug] Initial source changes:
[debug] removed:Set()
[debug] added: Set()
[debug] modified: Set()
[debug] Removed products: Set()
[debug] External API changes: API Changes: Set()
[debug] Modified binary dependencies: Set()
[debug] Initial directly invalidated sources: Set()
[debug]
[debug] Sources indirectly invalidated by:
[debug] product: Set()
[debug] binary dep: Set()
[debug] external source: Set()
[debug] All initially invalidated sources: Set()
[debug] Copy resource mappings:
[debug]
[debug] [Loading] Scanning directory /home/nskalis/app/difr-master
[error] Type error in expression
[debug] > load-failed
[debug] > last发布于 2015-01-26 18:04:45
你所做的不是运行difr,而是构建difr。我不确定这是否是你想要的--如果不是,按照那里的说明,这与克隆回购和建造完全无关。
现在,您正在构建的问题是,这个项目有点老了,因为它已经有一段时间没有更新了。如果您使用的是最近的SBT版本,它将无法工作。项目应该使用属性来指示什么SBT版本与它一起工作,但它没有。
幸运的是,自己很容易做到这一点。就这么做吧:
echo 'sbt.version=0.12.4' >project/build.properties只要您使用的是比此更新的SBT版本,它就会下载旧的SBT并相应地运行它。
哦,请务必使用Java1.7-Java1.8不能使用它。
一旦完成了所有这些-- build.properties文件和Java1.7 --并执行了所需的更改,请运行以下命令:
sbt assembly这将生成一个名为target/scala-2.9.2/difr.jar的文件,包括您的更改,然后您可以使用该文件,如difr的github页面所描述的那样。
https://stackoverflow.com/questions/28151689
复制相似问题