Skip to content

rules_jvm_external 6.6 broken for maven installs #1290

Open
@daniel-b2c2

Description

Just upgraded to 6.6 of rules_jvm_external.

We have the following legitimate dependency in a maven.install() clause:

"com.google.apis:google-api-services-calendar:v3-rev20241101-2.0.0",
"com.google.apis:google-api-services-sheets:v4-rev20241008-2.0.0",

which now produces the following errors on jvm_rules_external 6.6 when running the REPIN=1 bazel run @maven//:pin command

ERROR: /buildout/external/rules_jvm_external~/private/rules/coursier.bzl:928:13: An error occurred during the fetch of repository 'rules_jvm_external~~maven~unpinned_maven':
   Traceback (most recent call last):
	File "/buildout/external/rules_jvm_external~/private/rules/coursier.bzl", line 1039, column 38, in _coursier_fetch_impl
		dep_tree = make_coursier_dep_tree(
	File "/buildout/external/rules_jvm_external~/private/rules/coursier.bzl", line 928, column 13, in make_coursier_dep_tree
		fail("Error while fetching artifact with coursier: " + exec_result.stderr)
Error in fail: Error while fetching artifact with coursier: OpenJDK 64-Bit Server VM warning: Options -Xverify:none and -noverify were deprecated in JDK 13 and will likely be removed in a future release.
Resolution error: Error downloading com.google.apis:google-api-services-sheets:
  not found: https://company.jfrog.io/artifactory/maven-virtual/com/google/apis/google-api-services-sheets//google-api-services-sheets-.pom
Error downloading com.google.apis:google-api-services-calendar:
  not found: https://company.jfrog.io/artifactory/maven-virtual/com/google/apis/google-api-services-calendar//google-api-services-calendar-.pom
ERROR: no such package '@@rules_jvm_external~~maven~unpinned_maven//': Error while fetching artifact with coursier: OpenJDK 64-Bit Server VM warning: Options -Xverify:none and -noverify were deprecated in JDK 13 and will likely be removed in a future release.
Resolution error: Error downloading com.google.apis:google-api-services-sheets:
  not found: https://company.jfrog.io/artifactory/maven-virtual/com/google/apis/google-api-services-sheets//google-api-services-sheets-.pom
Error downloading com.google.apis:google-api-services-calendar:
  not found: https://company.jfrog.io/artifactory/maven-virtual/com/google/apis/google-api-services-calendar//google-api-services-calendar-.pom
ERROR: /buildout/external/rules_jvm_external~~maven~maven/BUILD:15644:6: @@rules_jvm_external~~maven~maven//:pin depends on @@rules_jvm_external~~maven~unpinned_maven//:pin in repository @@rules_jvm_external~~maven~unpinned_maven which failed to fetch. no such package '@@rules_jvm_external~~maven~unpinned_maven//': Error while fetching artifact with coursier: OpenJDK 64-Bit Server VM warning: Options -Xverify:none and -noverify were deprecated in JDK 13 and will likely be removed in a future release.
Resolution error: Error downloading com.google.apis:google-api-services-sheets:
  not found: https://company.jfrog.io/artifactory/maven-virtual/com/google/apis/google-api-services-sheets//google-api-services-sheets-.pom
Error downloading com.google.apis:google-api-services-calendar:
  not found: https://company.jfrog.io/artifactory/maven-virtual/com/google/apis/google-api-services-calendar//google-api-services-calendar-.pom
WARNING: errors encountered while analyzing target '@@rules_jvm_external~~maven~maven//:pin', it will not be built.
Analysis failed

Given the version of the dependencies has been truncated in the debug output, I wonder if there is a bug parsing the unusual format that google provides for its calendar and sheets library?

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