Skip to content

An error occurred during the fetch of repository 'rules_jvm_external++maven+protobuf_maven' #1337

Open
@lruellan

Description

@lruellan

Hi,

I'm working on a Bazel module that depends on protobuf.
It used to build successfully until today, when I'm getting the following error:

INFO: Repository rules_jvm_external++maven+protobuf_maven instantiated at: 144 | <builtin>: in <toplevel> 145 | Repository rule coursier_fetch defined at: 146 | /builder/home/.cache/bazel/_bazel_ubuntu/eab0d61a99b6696edb3d2aff87b585e8/external/rules_jvm_external+/private/rules/coursier.bzl:1447:33: in <toplevel> 147 | ERROR: /builder/home/.cache/bazel/_bazel_ubuntu/eab0d61a99b6696edb3d2aff87b585e8/external/rules_jvm_external+/private/rules/coursier.bzl:937:13: An error occurred during the fetch of repository 'rules_jvm_external++maven+protobuf_maven': 148 | Traceback (most recent call last): 149 | File "/builder/home/.cache/bazel/_bazel_ubuntu/eab0d61a99b6696edb3d2aff87b585e8/external/rules_jvm_external+/private/rules/coursier.bzl", line 1051, column 38, in _coursier_fetch_impl 150 | dep_tree = make_coursier_dep_tree( 151 | File "/builder/home/.cache/bazel/_bazel_ubuntu/eab0d61a99b6696edb3d2aff87b585e8/external/rules_jvm_external+/private/rules/coursier.bzl", line 937, column 13, in make_coursier_dep_tree 152 | fail("Error while fetching artifact with coursier: " + exec_result.stderr) 153 | Error in fail: Error while fetching artifact with coursier: Error: Could not find or load main class @.builder.home..cache.bazel._bazel_ubuntu.eab0d61a99b6696edb3d2aff87b585e8.external.rules_jvm_external++maven+protobuf_maven.java_argsfile 154 | ERROR: no such package '@@rules_jvm_external++maven+protobuf_maven//': Error while fetching artifact with coursier: Error: Could not find or load main class @.builder.home..cache.bazel._bazel_ubuntu.eab0d61a99b6696edb3d2aff87b585e8.external.rules_jvm_external++maven+protobuf_maven.java_argsfile 155 | ERROR: /builder/home/.cache/bazel/_bazel_ubuntu/eab0d61a99b6696edb3d2aff87b585e8/external/protobuf+/java/util/BUILD.bazel:8:13: @@protobuf+//java/util:util depends on @@rules_jvm_external++maven+protobuf_maven//:com_google_j2objc_j2objc_annotations in repository @@rules_jvm_external++maven+protobuf_maven which failed to fetch. no such package '@@rules_jvm_external++maven+protobuf_maven//': Error while fetching artifact with coursier: Error: Could not find or load main class @.builder.home..cache.bazel._bazel_ubuntu.eab0d61a99b6696edb3d2aff87b585e8.external.rules_jvm_external++maven+protobuf_maven.java_argsfile

I can see that com_google_j2objc_j2objc_annotations is included in the list of maven dependencies for protobuf_maven.

Does anyone have any idea about how to troubleshoot / fix this error?

I should note that this build error occurs when executing the build on Google Cloud Build. When I trigger the build locally, it works fine.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions