You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@heron.apache.org by GitBox <gi...@apache.org> on 2020/02/16 10:17:11 UTC
[GitHub] [incubator-heron] dttlgotv opened a new issue #3456: compile error:
Failed to fetch Maven dependency:
dttlgotv opened a new issue #3456: compile error: Failed to fetch Maven dependency:
URL: https://github.com/apache/incubator-heron/issues/3456
I used the neweset codes and see error below.
ERROR: /Users/jj/heron/incubator-heron/tools/java/src/org/apache/bazel/checkstyle/BUILD:12:1: no such package '@com_google_guava_guava//jar': Failed to fetch Maven dependency: Could not transfer artifact com.google.guava:guava:jar:18.0 from/to com_google_guava_guava (http://central.maven.org/maven2/): central.maven.org and referenced by '//tools/java/src/org/apache/bazel/checkstyle:checkstyle_java'
ERROR: Analysis of target '//heron/config/src/yaml:conf-local-heron-internals' failed; build aborted: no such package '@com_google_guava_guava//jar': Failed to fetch Maven dependency: Could not transfer artifact com.google.guava:guava:jar:18.0 from/to com_google_guava_guava (http://central.maven.org/maven2/): central.maven.org
INFO: Elapsed time: 30.117s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (0 packages loaded, 0 targets configured)
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [incubator-heron] joshfischer1108 commented on issue #3456: compile
error: Failed to fetch Maven dependency:
Posted by GitBox <gi...@apache.org>.
joshfischer1108 commented on issue #3456: compile error: Failed to fetch Maven dependency:
URL: https://github.com/apache/incubator-heron/issues/3456#issuecomment-586717664
@dttlgotv This looks like a network error. I would try to build again.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [incubator-heron] dttlgotv commented on issue #3456: compile error:
Failed to fetch Maven dependency:
Posted by GitBox <gi...@apache.org>.
dttlgotv commented on issue #3456: compile error: Failed to fetch Maven dependency:
URL: https://github.com/apache/incubator-heron/issues/3456#issuecomment-588021491
> There was an issue which was fixed already in which HTTP was being used instead of HTTPS. Maven Central switched to only work with HTTPS. You can read more about it here: https://blog.sonatype.com/central-repository-moving-to-https
>
> Make sure you are using a branch which includes this fix. #3436
I checkout branch to master pulled 5 days before. The errors is below:
no such package '@commons_cli_commons_cli//jar': Failed to fetch Maven dependency: Could not transfer artifact commons-cli:commons-cli:jar:1.3.1 from/to commons_cli_commons_cli (https://repo1.maven.org/maven2/): repo1.maven.org and referenced by '//tools/java/src/org/apache/bazel/checkstyle:checkstyle_cpp
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [incubator-heron] dttlgotv commented on issue #3456: compile error:
Failed to fetch Maven dependency:
Posted by GitBox <gi...@apache.org>.
dttlgotv commented on issue #3456: compile error: Failed to fetch Maven dependency:
URL: https://github.com/apache/incubator-heron/issues/3456#issuecomment-586822803
> @dttlgotv This looks like a network error. I would try to build again.
I changed maven url mirror, and many errors can not been seen. But some errors are left like below, please tell me where can modify the fetch url which seem I have changed.
ERROR: An error occurred during the fetch of repository 'io_bazel_rules_scala_scala_library':
java.io.IOException: Error downloading [http://central.maven.org/maven2/org/scala-lang/scala-library/2.12.8/scala-library-2.12.8.jar] to /private/var/tmp/_bazel_guoxinghua/272388fad3c2810d9ff9b28da122efba/external/io_bazel_rules_scala_scala_library/scala-library-2.12.8.jar: Unknown host: central.maven.org
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [incubator-heron] dttlgotv commented on issue #3456: compile error:
Failed to fetch Maven dependency:
Posted by GitBox <gi...@apache.org>.
dttlgotv commented on issue #3456: compile error: Failed to fetch Maven dependency:
URL: https://github.com/apache/incubator-heron/issues/3456#issuecomment-587216142
> Could it be that you are using http and not https?
I can not connect http://central.maven.org/maven2, so I have to modify the maven repository to mirror. And the mirror is https://mirrors.****.maven/.
After this modify, many issues are not seen, but some are left yet. It is odd that why downing from http://central.maven.org/maven2/ can be seen yet like below:
ERROR: An error occurred during the fetch of repository 'io_bazel_rules_scala_scala_library':
java.io.IOException: Error downloading [http://central.maven.org/maven2/org/scala-lang/scala-library/2.12.8/scala-library-2.12.8.jar] to
I think there is another place need modify maven repository, but I can not find it.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [incubator-heron] thinker0 commented on issue #3456: compile error:
Failed to fetch Maven dependency:
Posted by GitBox <gi...@apache.org>.
thinker0 commented on issue #3456: compile error: Failed to fetch Maven dependency:
URL: https://github.com/apache/incubator-heron/issues/3456#issuecomment-586711279
In my case, it happens when the master version is not. I solved it by rebase with master branch.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [incubator-heron] dttlgotv removed a comment on issue #3456:
compile error: Failed to fetch Maven dependency:
Posted by GitBox <gi...@apache.org>.
dttlgotv removed a comment on issue #3456: compile error: Failed to fetch Maven dependency:
URL: https://github.com/apache/incubator-heron/issues/3456#issuecomment-586806517
> In my case, it happens when the master version is not. I solved it by rebase with master branch.
Same issue after I do below.
I have check tag to 0.20.1-incubating. And make sure that my bazel version is below:
Build label: 0.26.0
Build target: bazel-out/darwin-opt/bin/src/main/java/com/google/devtools/build/lib/bazel/BazelServer_deploy.jar
Build time: Tue May 28 08:38:24 2019 (1559032704)
Build timestamp: 1559032704
Build timestamp as int: 1559032704
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [incubator-heron] nicknezis closed issue #3456: compile error:
Failed to fetch Maven dependency:
Posted by GitBox <gi...@apache.org>.
nicknezis closed issue #3456: compile error: Failed to fetch Maven dependency:
URL: https://github.com/apache/incubator-heron/issues/3456
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [incubator-heron] dttlgotv commented on issue #3456: compile error:
Failed to fetch Maven dependency:
Posted by GitBox <gi...@apache.org>.
dttlgotv commented on issue #3456: compile error: Failed to fetch Maven dependency:
URL: https://github.com/apache/incubator-heron/issues/3456#issuecomment-586806517
> In my case, it happens when the master version is not. I solved it by rebase with master branch.
Same issue after I do below.
I have check tag to 0.20.1-incubating. And make sure that my bazel version is below:
Build label: 0.26.0
Build target: bazel-out/darwin-opt/bin/src/main/java/com/google/devtools/build/lib/bazel/BazelServer_deploy.jar
Build time: Tue May 28 08:38:24 2019 (1559032704)
Build timestamp: 1559032704
Build timestamp as int: 1559032704
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [incubator-heron] nicknezis commented on issue #3456: compile
error: Failed to fetch Maven dependency:
Posted by GitBox <gi...@apache.org>.
nicknezis commented on issue #3456: compile error: Failed to fetch Maven dependency:
URL: https://github.com/apache/incubator-heron/issues/3456#issuecomment-588038843
This is a good sign because you are making progress. It seems it is related to your internet connection and not the logic in the build. You can keep trying until you have all of the dependencies downloaded locally. Bazel will cache the downloaded files so future builds should work better. You can also run a http cache if this helps. Something like Squid proxy could maybe help. Here is an example. https://wiki.squid-cache.org/ConfigExamples/Caching/CachingAVUpdates
I'm closing this issue for now unless you have a new finding.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [incubator-heron] nicknezis commented on issue #3456: compile
error: Failed to fetch Maven dependency:
Posted by GitBox <gi...@apache.org>.
nicknezis commented on issue #3456: compile error: Failed to fetch Maven dependency:
URL: https://github.com/apache/incubator-heron/issues/3456#issuecomment-588015045
There was an issue which was fixed already in which HTTP was being used instead of HTTPS. Maven Central switched to only work with HTTPS. You can read more about it here: https://blog.sonatype.com/central-repository-moving-to-https
Make sure you are using a branch which includes this fix. https://github.com/apache/incubator-heron/pull/3436
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [incubator-heron] joshfischer1108 commented on issue #3456: compile
error: Failed to fetch Maven dependency:
Posted by GitBox <gi...@apache.org>.
joshfischer1108 commented on issue #3456: compile error: Failed to fetch Maven dependency:
URL: https://github.com/apache/incubator-heron/issues/3456#issuecomment-587225817
You shouldn't have to change any the maven central urls. My first thought is that there are some networking issues that are affecting the build.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [incubator-heron] nicknezis commented on issue #3456: compile
error: Failed to fetch Maven dependency:
Posted by GitBox <gi...@apache.org>.
nicknezis commented on issue #3456: compile error: Failed to fetch Maven dependency:
URL: https://github.com/apache/incubator-heron/issues/3456#issuecomment-588026541
Is it maybe timing out when downloading the artifact? Do you get the same error when running multiple times?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [incubator-heron] dttlgotv commented on issue #3456: compile error:
Failed to fetch Maven dependency:
Posted by GitBox <gi...@apache.org>.
dttlgotv commented on issue #3456: compile error: Failed to fetch Maven dependency:
URL: https://github.com/apache/incubator-heron/issues/3456#issuecomment-587236231
> You shouldn't have to change any the maven central urls. My first thought is that there are some networking issues that are affecting the build.
The maven url in workspace can not be connected truly in china.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [incubator-heron] dttlgotv commented on issue #3456: compile error:
Failed to fetch Maven dependency:
Posted by GitBox <gi...@apache.org>.
dttlgotv commented on issue #3456: compile error: Failed to fetch Maven dependency:
URL: https://github.com/apache/incubator-heron/issues/3456#issuecomment-588028618
> Is it maybe timing out when downloading the artifact? Do you get the same error when running multiple times?
different errors. I compile again , the error is :
ERROR: An error occurred during the fetch of repository 'org_apache_zookeeper':
java.io.IOException: Error downloading [https://archive.apache.org/dist/zookeeper/zookeeper-3.4.14/zookeeper-3.4.14.tar.gz] to /private/var/tmp/_bazel_guoxinghua/272388fad3c2810d9ff9b28da122efba/external/org_apache_zookeeper/zookeeper-3.4.14.tar.gz: connect timed out
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [incubator-heron] dttlgotv commented on issue #3456: compile error:
Failed to fetch Maven dependency:
Posted by GitBox <gi...@apache.org>.
dttlgotv commented on issue #3456: compile error: Failed to fetch Maven dependency:
URL: https://github.com/apache/incubator-heron/issues/3456#issuecomment-586710412
I used this version truely.
发自我的iPhone
------------------ Original ------------------
From: Roger Pack <notifications@github.com>
Date: Sun,Feb 16,2020 9:15 PM
To: apache/incubator-heron <incubator-heron@noreply.github.com>
Cc: dttlgotv <tantan.gxh@foxmail.com>, Author <author@noreply.github.com>
Subject: Re: [apache/incubator-heron] compile error: Failed to fetch Maven dependency: (#3456)
In most cases, this is the latest version of bazel.
Get bazel-0.26.0 and try it out.
` wget https://github.com/bazelbuild/bazel/releases/download/0.26.0/bazel-0.26.0-installer-darwin-x86_64.sh && sh bazel-0.26.0-installer-darwin-x86_64.sh --user `
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [incubator-heron] joshfischer1108 commented on issue #3456: compile
error: Failed to fetch Maven dependency:
Posted by GitBox <gi...@apache.org>.
joshfischer1108 commented on issue #3456: compile error: Failed to fetch Maven dependency:
URL: https://github.com/apache/incubator-heron/issues/3456#issuecomment-587214576
Could it be that you are using http and not https?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [incubator-heron] thinker0 commented on issue #3456: compile error:
Failed to fetch Maven dependency:
Posted by GitBox <gi...@apache.org>.
thinker0 commented on issue #3456: compile error: Failed to fetch Maven dependency:
URL: https://github.com/apache/incubator-heron/issues/3456#issuecomment-586705098
In most cases, this is the latest version of bazel.
Get bazel-0.26.0 and try it out.
`` `
wget https://github.com/bazelbuild/bazel/releases/download/0.26.0/bazel-0.26.0-installer-darwin-x86_64.sh && sh bazel-0.26.0-installer-darwin-x86_64.sh --user
`` `
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [incubator-heron] dttlgotv commented on issue #3456: compile error:
Failed to fetch Maven dependency:
Posted by GitBox <gi...@apache.org>.
dttlgotv commented on issue #3456: compile error: Failed to fetch Maven dependency:
URL: https://github.com/apache/incubator-heron/issues/3456#issuecomment-588023145
> > There was an issue which was fixed already in which HTTP was being used instead of HTTPS. Maven Central switched to only work with HTTPS. You can read more about it here: https://blog.sonatype.com/central-repository-moving-to-https
> > Make sure you are using a branch which includes this fix. #3436
>
> I checkout branch to master pulled 5 days before. The errors is below:
>
> no such package '@commons_cli_commons_cli//jar': Failed to fetch Maven dependency: Could not transfer artifact commons-cli:commons-cli:jar:1.3.1 from/to commons_cli_commons_cli (https://repo1.maven.org/maven2/): repo1.maven.org and referenced by '//tools/java/src/org/apache/bazel/checkstyle:checkstyle_cpp
I cancel the proxy and compile again, the error is below:
DEBUG: Rule 'io_bazel_rules_scala' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "5abd638278de10ccccb0b4d614158f394278b828708ba990461334ecc01529a6"
ERROR: /Users/cc/heron/incubator-heron/tools/java/src/org/apache/bazel/checkstyle/BUILD:12:1: no such package '@com_puppycrawl_tools_checkstyle//jar': Failed to fetch Maven dependency: Could not transfer artifact com.puppycrawl.tools:checkstyle:jar:6.17 from/to com_puppycrawl_tools_checkstyle (https://repo1.maven.org/maven2/): repo1.maven.org and referenced by '//tools/java/src/org/apache/bazel/checkstyle:checkstyle_java'
ERROR: Analysis of target '//heron/config/src/yaml:conf-local-client' failed; build aborted: no such package '@com_puppycrawl_tools_checkstyle//jar': Failed to fetch Maven dependency: Could not transfer artifact com.puppycrawl.tools:checkstyle:jar:6.17 from/to com_puppycrawl_tools_checkstyle (https://repo1.maven.org/maven2/): repo1.maven.org
INFO: Elapsed time: 30.216s
INFO: 0 processes.
FAILED: Build did
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services