embedded-redis icon indicating copy to clipboard operation
embedded-redis copied to clipboard

relocation Jedis client package paths to avoid class conflicts

Open dmsolr opened this issue 6 months ago • 4 comments

dmsolr avatar Aug 13 '25 03:08 dmsolr

Can you elaborate on what the problem is?

codemonstur avatar Aug 13 '25 11:08 codemonstur

Hi @codemonstur , Since embedded-redis directly references the dependency of the Jedis client, when I use a different version of Jedis during the process, version incompatibility causes embedded-redis to throw a ClassNotFoundException in cluster mode.

dmsolr avatar Aug 18 '25 02:08 dmsolr

Could I introduce the maven-shaded-plugin to shade Jedis into the embedded-redis jar as a replacement for the dependency?

dmsolr avatar Aug 18 '25 03:08 dmsolr

The mechanism you use to include a particular version of Jedis shouldn't matter. Either you include one that works, or you don't.

I can't get rid of Jedis, it is necessary for some functionality. And I don't want to delete that functionality either.

I still don't get what you are trying to do though. Are you trying to replace my version of Jedis with a newer one and it fails? Or are you trying to use an older version and it fails? If you are using an older version; why?

codemonstur avatar Sep 02 '25 17:09 codemonstur