Saving from Jar Hell with Jigsaw Layers
summary
The talk explains how Java's JPMS (Jigsaw) handles dependency version conflicts (Jar Hell) and why JPMS lacks built-in module versioning like OSGi. It shows how Jigsaw detects split-packages but cannot load two module versions on the same module path, and demonstrates using Jigsaw Layers and Jigsaw services as a practical approach to isolate and safely run multiple versions to resolve such conflicts.
AI-written summary · about
chapters (16)
- 0:00Introduction
- 1:06Excelsior JET project
- 3:57Java modules basics
- 5:01Jar Hell explained
- 6:25Classloaders and versioning
- 11:24Versioning abandoned
- 16:42Layers solve Jar Hell
- 20:18Package renaming workaround
- 23:55Layers prevent conflicts
- 27:08IoC with layers
- 31:30Demo setup
- 36:56Solving Jar Hell demo
- 42:08Server apps challenge
- 43:55Tomcat modularization
- 51:05Spring Boot tips
- 52:31Summary
