2016-08-11 3 views
1

hello-samza 기본 설정을 따르려고하고 있으며 "Samza 작업 패키지 빌드"를 지나칠 수 없습니다. 지정된 내가 최근 내가 실행하려고 Gradle을 떨어져 실행하고 다음과 같음 :hello-samza 데모 컴파일되지 않음

$ mvn clean package 

:

$ ./gradlew publishToMavenLocal 

FAILURE: Build failed with an exception. 

* What went wrong: 
Task 'publishToMavenLocal' not found in root project 'hello-samza'. 

* Try: 
Run gradlew tasks to get a list of available tasks. Run with --stacktrace option to get the stack trace. Run with                    --info                       or                        --debug                       option to get more log output. 

는 다음 나는 부트 스트랩이 실제로 그래서 난 그냥 다음 단계로 이동할 수 있다고 생각하는 것이 실행되는 것을보고 어떤 출력을 잔뜩 후, 궁극적으로 실패

[INFO] ------------------------------------------------------------------------ 
[INFO] BUILD FAILURE 
[INFO] ------------------------------------------------------------------------ 
[INFO] Total time: 7.819 s 
[INFO] Finished at: 2016-08-11T16:51:20-06:00 
[INFO] Final Memory: 11M/151M 
[INFO] ------------------------------------------------------------------------ 
[ERROR] Failed to execute goal on project hello-samza: Could not resolve dependencies for project org.apache.samza:hello-samza:jar:0.11.0: Failed to collect dependencies at org.apache.samza:samza-api:jar:0.11.0-SNAPSHOT: Failed to read artifact descriptor for org.apache.samza:samza-api:jar:0.11.0-SNAPSHOT: Could not transfer artifact org.apache.samza:samza-api:pom:0.11.0-SNAPSHOT from/to scala-tools.org (https://oss.sonatype.org/content/groups/scala-tools): Access denied to: https://oss.sonatype.org/content/groups/scala-tools/org/apache/samza/samza-api/0.11.0-SNAPSHOT/samza-api-0.11.0-SNAPSHOT.pom , ReasonPhrase:Forbidden. -> [Help 1] 
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. 
[ERROR] Re-run Maven using the -X switch to enable full debug logging. 
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles: 
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException 

내가 다음 -X 스위치를 실행하고 이러한 오류의 무리를 참조하십시오

org.eclipse.aether.transfer.MetadataTransferException: Could not transfer metadata org.apache.samza:samza-kafka_2.10:0.11.0-SNAPSHOT/maven-metadata.xml from/to scala-tools.org (https://oss.sonatype.org/content/groups/scala-tools): Access denied to: https://oss.sonatype.org/content/groups/scala-tools/org/apache/samza/samza-kafka_2.10/0.11.0-SNAPSHOT/maven-metadata.xml , ReasonPhrase:Forbidden. 

여기부터 진행하는 방법을 모르겠습니다. 나는 이전 버전이 나를 위해 일할 수 있었다는 것을 알고있다. Linux (내 이전 env)와 OS X (현재 env)의 차이점과 관련이 있습니까?

+1

, 당신의 OS에 대한 태그를 추가 고려 : 는 명확하게하기 위해, 나는 다음과 같이 빌드 디렉토리 (.../hello-samza)에 pom.xml을 변경했습니다. – sixtytrees

+0

완료. 감사합니다 @ sixtytrees – RockyMountainHigh

답변

0

감사합니다. 0.10.1을 사용하여 저에게 잘 맞았습니다 (Mac 15.6). 이 비 Windows 때문에

146c146 
<  <samza.version>0.11.0-SNAPSHOT</samza.version> 
--- 
>  <samza.version>0.10.1</samza.version> 
0

[email protected]의 매우 유용한 사용자 덕분에 누가 나를 더 자세히 볼 수 있는지 안내했습니다. 나는 지점 "최신"이 samza 버전 0.11을 가리키고 있음을 깨달았습니다. 분명히 액세스 할 수 없습니다.

그런 다음 master의 pom을 체크 아웃하고 현재 10.1의 안정적인 릴리스를 가리키고 있습니다. 마스터 브랜치로 다시 이동하여 컴파일하고 계속 이동할 수있었습니다.