Skip to content

common.sh cannot determine transitive dependencies for install_modules #12034

Closed

Description

@chingor13

When migrating java-bigquery, we are running into install issues for the split tests. We want to only install the required dependencies of a project. In this case java-bigquery depends on java-bigquerystorage which depends on java-datacatalog. When running install_modules "java_bigquery", we should be compiling/installing all of java-bigquery, java-bigquerystorage, and java-datacatalog.

Activity

  1. self-assigned this
    on Feb 26, 2026
  2. added
    type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.
    priority: p2Moderately-important priority. Fix may not be included in next release.
    on Feb 26, 2026
  3. suztomo commented on Mar 5, 2026

    @suztomo
    Member

    https://github.com/googleapis/google-cloud-java/actions/runs/22732700304/job/65925748123?pr=12019 failed with these errors:

    Error: 5:812 [ERROR] Failed to execute goal on project google-cloud-bigquery: Could not resolve dependencies for project com.google.cloud:google-cloud-bigquery:jar:2.60.1-SNAPSHOT
    Error: 5:812 [ERROR] dependency: com.google.cloud:google-cloud-bigquerystorage:jar:3.21.1-SNAPSHOT (compile)
    Error: 5:813 [ERROR] 	com.google.cloud:google-cloud-bigquerystorage:jar:3.21.1-SNAPSHOT was not found in https://maven-central.storage-download.googleapis.com/maven2 during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of google-maven-central-copy has elapsed or updates are forced
    Error: 5:813 [ERROR] 	com.google.cloud:google-cloud-bigquerystorage:jar:3.21.1-SNAPSHOT was not found in https://repo1.maven.org/maven2 during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of maven-central has elapsed or updates are forced
    Error: 5:814 [ERROR] dependency: com.google.api.grpc:proto-google-cloud-bigquerystorage-v1:jar:3.21.1-SNAPSHOT (compile)
    Error: 5:814 [ERROR] 	com.google.api.grpc:proto-google-cloud-bigquerystorage-v1:jar:3.21.1-SNAPSHOT was not found in https://maven-central.storage-download.googleapis.com/maven2 during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of google-maven-central-copy has elapsed or updates are forced
    Error: 5:815 [ERROR] 	com.google.api.grpc:proto-google-cloud-bigquerystorage-v1:jar:3.21.1-SNAPSHOT was not found in https://repo1.maven.org/maven2 during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of maven-central has elapsed or updates are forced
    Error: 5:815 [ERROR] dependency: com.google.cloud:google-cloud-datacatalog:jar:1.92.0-SNAPSHOT (test)
    
  4. suztomo commented on Mar 5, 2026

    @suztomo
    Member

    @chingor13 I read the log of Java 11 unit test failure but it doesn't have "Compiling and building all modules for" in it.

    case ${JOB_TYPE} in
      test)
        if [[ -n "${BUILD_SUBDIR}" ]]
        then
          echo "Compiling and building all modules for ${BUILD_SUBDIR}"
          install_modules "${BUILD_SUBDIR}"
    

    install_modules might not be the cause of the failure.

  5. suztomo commented on Mar 5, 2026

    @suztomo
    Member

    In the source tree of the pull request (#12019; 78269ab), java-bigquerystorage/google-cloud-bigquerystorage/pom.xml has different versions than the error message.

      <artifactId>google-cloud-bigquerystorage</artifactId>
      <version>3.23.0-SNAPSHOT</version><!-- {x-version-update:google-cloud-bigquerystorage:current} -->
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

priority: p2Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions