Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #39748

Re: Get away from dependency hell in maven possible

Newsgroups comp.lang.java.programmer
Date 2022-03-24 11:24 -0700
References <24661170-8a5b-44a9-9e3e-aff788e65e13n@googlegroups.com> <623cb629$0$704$14726298@news.sunsite.dk>
Message-ID <9345bbbb-3412-49a0-9a95-92cdcb7c034dn@googlegroups.com> (permalink)
Subject Re: Get away from dependency hell in maven possible
From "e.d.pro...@gmail.com" <e.d.programmer@gmail.com>

Show all headers | View raw


> You can only do what you can do. 
> 
> You can switch to a model with multiple micro-services 
> that makes network calls to each other. 
> 
> Or you can stay with a single application and Java 
> calls. 
> 
> If you chose the latter then the way to support different versions 
> of libraries it to switch to a model where each module is loaded 
> by separate classloaders from separate classpaths. 
> 
> There are a few options for that. You can go custom. There is 
> OSGi. Etc.. 
> 
> Arne

Deploy an app as multiple war files, each gets it's own classpath. They can share code from a common module which packages a copy of a jar into each war. If they need to share each other's code, it's http calls, which is normal in the front end code.

Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Get away from dependency hell in maven possible mike <mikaelpetterson@hotmail.com> - 2022-03-24 07:46 -0700
  Re: Get away from dependency hell in maven possible Eric Sosman <esosman@comcast-dot-net.invalid> - 2022-03-24 13:16 -0400
    Re: Get away from dependency hell in maven possible mike <mikaelpetterson@hotmail.com> - 2022-03-24 23:31 -0700
  Re: Get away from dependency hell in maven possible "e.d.pro...@gmail.com" <e.d.programmer@gmail.com> - 2022-03-24 10:32 -0700
  Re: Get away from dependency hell in maven possible Arne Vajhøj <arne@vajhoej.dk> - 2022-03-24 14:19 -0400
    Re: Get away from dependency hell in maven possible "e.d.pro...@gmail.com" <e.d.programmer@gmail.com> - 2022-03-24 11:24 -0700
      Re: Get away from dependency hell in maven possible Arne Vajhøj <arne@vajhoej.dk> - 2022-03-24 14:49 -0400
        Re: Get away from dependency hell in maven possible mike <mikaelpetterson@hotmail.com> - 2022-03-25 00:06 -0700

csiph-web