firebase / firebase/firebase-admin-java
Jar Hell com.google.http-client:google-http-client two different version
- Langage dominant
- Java
- Étoiles
- 620
- Forks
- 305
- Merge moyen
- 3 h 23 min
- PR mergées (30 j)
- 1
Description
### [READ] Step 1: Are you in the right place?
* For issues or feature requests related to __the code in this repository__
file a Github issue.
* If this is a __feature request__ make sure the issue title starts with "FR:".
* For general technical questions, post a question on [StackOverflow](http://stackoverflow.com/)
with the firebase tag.
* For general Firebase discussion, use the [firebase-talk](https://groups.google.com/forum/#!forum/firebase-talk)
google group.
* For help troubleshooting your application that does not fall under one
of the above categories, reach out to the personalized
[Firebase support channel](https://firebase.google.com/support/).
### [REQUIRED] Step 2: Describe your environment
* Operating System version: Manjaro
* Firebase SDK version: 9.3.0
* Library version: ???
* Firebase Product: firebase-admin
### [REQUIRED] Step 3: Describe the problem
Dependecy:
```
com.google.firebase
firebase-admin
${firebase-admin.version}
```
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:
- com.google.http-client:google-http-client-gson
- io.grpc:grpc-api (really large diffrency 1.27 and 1.60 and 1.62)
- com.google.j2objc:j2objc-annotations
- com.google.errorprone:error_prone_annotations
- com.google.guava:guava
#### 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
```
Guide de contribution
Ouvrir le guide de contribution
Piste de recherche
Commencez par la dépendance firebase-admin dans le projet Maven et exécutez la commande validate de maven-enforcer-plugin indiquée afin d’inspecter l’arbre des dépendances. Examinez les versions en conflit de google-http-client, grpc-api, Guava et des dépendances transitives associées. La tâche est terminée lorsque les vérifications de convergence des dépendances et de versions en double réussissent sans les conflits de jar signalés.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- java
- Domaine
- build-system
- Type d'issue
- Bug
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Activité
- À l'abandon
- Clarté
- À clarifier
- Accessibilité débutants
- 25/100