2015-01-26 6 views
0

의 빌드를 SBT. 이 문제를 극복하는 방법에 대해 조언을 해 주실 수 있습니까?difr : 나는 아래의 오류가 발생하고, <a href="https://github.com/wspringer/difr" rel="nofollow">https://github.com/wspringer/difr</a></p> <p>을하지만 어떻게-하는 내가 여기에 설명 된대로 테스트하고 "difr"유틸리티를 실행하고자하는 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] ^
[[email protected] 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 
+0

첫 번째 오류가 나타나기 전에 명령이 실행되었습니다. –

답변

0
당신이 difr를 실행하지 뭐

하지만 difr 건물입니다. 그게 네가 원하는 것인지 아닌지는 모르겠다. 그렇지 않다면 레포와 건물을 복제하는 것과 전혀 관련이없는 지침을 따라야한다.

이제는 프로젝트가 다소 오래되었다는 점에서 잠시 동안 업데이트되지 않았다는 점에서 문제가 있습니다. 최근 SBT 버전을 사용하는 경우 작동하지 않습니다. 프로젝트는이 속성을 사용하여 어떤 SBT 버전이 해당 버전과 함께 작동하는지 나타내야하지만 그렇지 않습니다.

다행히도, 그렇게하는 것이 쉽습니다. 그냥 이렇게 :

echo 'sbt.version=0.12.4' >project/build.properties 

을만큼 당신이보다 새로운 SBT 버전을 사용하는 등, 그에 따라 그 이전 SBT 및 실행을 다운로드합니다.

아, 자바 1.7을 사용하십시오. - 자바 1.8은 작동하지 않습니다. - build.properties 파일 및 Java 1.7 - 당신은 장소에 모든 것을 일단

하고 원하는 변경 사항을 수행 한,이 명령을 실행 파일이 포함 target/scala-2.9.2/difr.jar라는 생성합니다

sbt assembly 

당신의 변경 사항은 difr의 github 페이지에 설명 된대로 사용할 수 있습니다.

+0

다니엘에게 감사드립니다. 그것은 우리에게 더 한 걸음 나아갔습니다. – iamsterdam

+0

에 대해 불평합니다 [info] 현재 프로젝트를 difr로 설정하십시오 (빌드 파일 :/home/nskalis/app/difr-master /) [오류] 올바른 키가 아닙니다 : 빌드 (유사 :로드 된 빌드) [오류 ] build.sbt [오류]^ – iamsterdam

+0

@ NikosSkalis 귀하의 질문에 그 붙여 넣기의 중간에, 당신은'sbt build.sbt' 않습니다. 구성 파일을 sbt로 전달하지 않고'sbt' 만 실행하고 거기서 계속 진행하십시오 - 필요할 경우 sbt 콘솔에'help' 명령이 있습니다. –