Repository navigation
Replies: 1 comment 4 replies
|
Option 1: google how to create a fat jar with maven. That should pull in the transative dependencies that you haven't excluded - but based upon your shaded jar you may already be excluding too much. |
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Before reporting an issue
Area
dependencies
Describe the bug
I am trying to implement some custom logic for our keycloak instance, and one of the requirements is at some point to send Firebase Push Notification. I have managed to build custom resource provider as well as custom authenticators, and all that works.
However, once I started working on sending this firebase message, and adding firebase-admin to dependency and trying to send I get following error:
And my pom.xml is like this: (nothing fancy, just declaring dependencies)
I do understand that the error because there is no firebase JARs in keycloak or in my jar (as jar that is produced is only 50kb) but I do not know what to do in order to make it work
I have tried adding this plugin:
But than I get error that it cannot find class
java.lang.NoClassDefFoundError: com/google/api/client/json/jackson2/JacksonFactoryand looking into my JAR, i cannot find that class either...Version
26.0.1
Regression
Expected behavior
To send FirebaseMessage
Actual behavior
Throws an error Uncaught server error: java.lang.NoClassDefFoundError: com/google/firebase/messaging/FirebaseMessagingException
How to Reproduce?
Anything else?
No response
All reactions