私は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)の違いに関係しているのでしょうか?
は、お使いのOS用のタグを追加することを検討して: は明確にするために、私は次のようにビルドディレクトリ(
.../hello-samza
)でpom.xml
を変更しました。 – sixtytrees完了。ありがとう@sixtytrees – RockyMountainHigh