firebase / firebase-admin-java

Firebase Admin Java SDK
https://firebase.google.com/docs/admin/setup
Apache License 2.0
525 stars 253 forks source link

Jar Hell com.google.http-client:google-http-client two different version #951

Open marwin1991 opened 1 month ago

marwin1991 commented 1 month ago

[READ] Step 1: Are you in the right place?

[REQUIRED] Step 2: Describe your environment

[REQUIRED] Step 3: Describe the problem

Dependecy:

        <dependency>
            <groupId>com.google.firebase</groupId>
            <artifactId>firebase-admin</artifactId>
            <version>${firebase-admin.version}</version>
        </dependency>

contains com.google.http-client:google-http-client in two different version, what can cause jar hell and method missing in production.

Same problem with:

Steps to reproduce:

What happened? How can we make the problem occur? This could be a description, log/console output, etc.

mvn
      --batch-mode
      validate
      org.apache.maven.plugins:maven-enforcer-plugin:3.4.1:enforce
      -Denforcer.rules=banDuplicatePomDependencyVersions,dependencyConvergence

Relevant Code:

[ERROR] +-pl.com.aaaa:bbbbb:jar:24.2.0-SNAPSHOT
[ERROR]   +-com.google.firebase:firebase-admin:jar:9.3.0:compile
[ERROR]     +-com.google.api-client:google-api-client-gson:jar:2.4.0:compile
[ERROR]       +-com.google.http-client:google-http-client:jar:1.44.1:compile
[ERROR] and
[ERROR] +-pl.com.aaaa:bbbbb:jar:24.2.0-SNAPSHOT
[ERROR]   +-com.google.firebase:firebase-admin:jar:9.3.0:compile
[ERROR]     +-com.google.http-client:google-http-client:jar:1.44.1:compile
[ERROR] and
[ERROR] +-pl.com.aaaa:bbbbb:jar:24.2.0-SNAPSHOT
[ERROR]   +-com.google.firebase:firebase-admin:jar:9.3.0:compile
[ERROR]     +-com.google.auth:google-auth-library-oauth2-http:jar:1.23.0:compile
[ERROR]       +-com.google.http-client:google-http-client:jar:1.43.3:compile
[ERROR] and
[ERROR] +-pl.com.aaaa:bbbbb:jar:24.2.0-SNAPSHOT
[ERROR]   +-com.google.firebase:firebase-admin:jar:9.3.0:compile
[ERROR]     +-com.google.cloud:google-cloud-storage:jar:2.38.0:compile
[ERROR]       +-com.google.http-client:google-http-client:jar:1.44.1:compile
[ERROR] and
[ERROR] +-pl.com.aaaa:bbbbb:jar:24.2.0-SNAPSHOT
[ERROR]   +-com.google.firebase:firebase-admin:jar:9.3.0:compile
[ERROR]     +-com.google.cloud:google-cloud-firestore:jar:3.21.1:compile
[ERROR]       +-com.google.http-client:google-http-client:jar:1.44.1:compile
google-oss-bot commented 1 month ago

I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.