profile
viewpoint

Ask questionsBazel build failed to fetch Maven dependency

When I run bazel build -c opt --config=android_arm64 mediapipe/examples/android/src/java/com/google/mediapipe/apps/handtrackinggpu, I met with following error:

DEBUG: Rule 'build_bazel_rules_apple' indicated that a canonical reproducible form can be obtained by modifying arguments commit = "6c9fcae7a3597aabd43f28be89466afe0eab18de", shallow_since = "1565379803 -0700" and dropping ["tag"]
DEBUG: Call stack for the definition of repository 'build_bazel_rules_apple' which is a git_repository (rule definition at /home/sitao/.cache/bazel/_bazel_sitao/196738a4e5710d43dc3e6a26d08dcdc0/external/bazel_tools/tools/build_defs/repo/git.bzl:181:18):
 - /home/sitao/development/mediapipe/WORKSPACE:251:1
INFO: Call stack for the definition of repository 'remotejdk11_linux' which is a http_archive (rule definition at /home/sitao/.cache/bazel/_bazel_sitao/196738a4e5710d43dc3e6a26d08dcdc0/external/bazel_tools/tools/build_defs/repo/http.bzl:237:16):
 - /DEFAULT.WORKSPACE.SUFFIX:199:1
ERROR: /home/sitao/development/mediapipe/mediapipe/examples/android/src/java/com/google/mediapipe/apps/handtrackinggpu/BUILD:64:1: //mediapipe/examples/android/src/java/com/google/mediapipe/apps/handtrackinggpu:mediapipe_lib depends on @com_google_code_findbugs//jar:jar in repository @com_google_code_findbugs which failed to fetch. no such package '@com_google_code_findbugs//jar': Failed to fetch Maven dependency: Could not transfer artifact com.google.code.findbugs:jsr305:jar:3.0.2 from/to com_google_code_findbugs (https://repo1.maven.org/maven2/): connect timed out
ERROR: Analysis of target '//mediapipe/examples/android/src/java/com/google/mediapipe/apps/handtrackinggpu:handtrackinggpu' failed; build aborted: no such package '@com_google_code_findbugs//jar': Failed to fetch Maven dependency: Could not transfer artifact com.google.code.findbugs:jsr305:jar:3.0.2 from/to com_google_code_findbugs (https://repo1.maven.org/maven2/): connect timed out
INFO: Elapsed time: 10.175s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (0 packages loaded, 0 targets configured)

I can access the link https://repo1.maven.org/maven2 through browser and find findbug folder.

google/mediapipe

Answer questions jiuqiant

I just tried the bazel build command and it works ok. So, I guess it's a temporarily network issue. Could you retry it? If you prefer to cache the downloaded external dependencies, see https://github.com/google/mediapipe/issues/3#issuecomment-506926022. We will be working on generating an archive file of MediaPipe's external dependencies for the users who have the trouble with the external dependencies.

useful!

Related questions

Get hand_tracking_cpu source code to extract detected hand metadata hot 2
stdout: stderr: xcodebuild: error: SDK "macosx10.10" cannot be located. - mediapipe hot 1
SSL certification error while downloading dependency libraries via Bazel hot 1
Build of Hello World Failed on Darwin (MacOS) hot 1
unable to run multi-hand tracking on video - mediapipe hot 1
Build of Hello World Failed on Darwin (MacOS) hot 1
Bazel build failed in Android Studio hot 1
Memory leak of facedetectioncpu example on Android (RK3399 specific) - mediapipe hot 1
Fail to pull in MediaPipe's external dependencies due to unstable internet connection hot 1
at com.google.mediapipe.apps.objectdetectioncpu.MainActivity.<clinit>(MainActivity.java:50) hot 1
Hand Tracking Desktop GPU Build Error hot 1
ERROR: An error occurred during the fetch of repository 'bazel_skylib' hot 1
Is there a way to change color in real time on the hair segmentation android? - mediapipe hot 1
Running error hot 1
Hello World failed build on Raspberry Pi - mediapipe hot 1
source:https://uonfu.com/
Github User Rank List