首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >difr:如何构建difr

difr:如何构建difr
EN

Stack Overflow用户
提问于 2015-01-26 14:11:04
回答 1查看 304关注 0票数 0

我想测试并运行如下所述的"difr“实用程序:https://github.com/wspringer/difr

但是,我得到下面的错误。请你就如何克服这个问题提出建议好吗?

代码语言:javascript
复制
[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
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2015-01-26 18:04:45

你所做的不是运行difr,而是构建difr。我不确定这是否是你想要的--如果不是,按照那里的说明,这与克隆回购和建造完全无关。

现在,您正在构建的问题是,这个项目有点老了,因为它已经有一段时间没有更新了。如果您使用的是最近的SBT版本,它将无法工作。项目应该使用属性来指示什么SBT版本与它一起工作,但它没有。

幸运的是,自己很容易做到这一点。就这么做吧:

代码语言:javascript
复制
echo 'sbt.version=0.12.4' >project/build.properties

只要您使用的是比此更新的SBT版本,它就会下载旧的SBT并相应地运行它。

哦,请务必使用Java1.7-Java1.8不能使用它。

一旦完成了所有这些-- build.properties文件和Java1.7 --并执行了所需的更改,请运行以下命令:

代码语言:javascript
复制
sbt assembly

这将生成一个名为target/scala-2.9.2/difr.jar的文件,包括您的更改,然后您可以使用该文件,如difr的github页面所描述的那样。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/28151689

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档