[Vijay (accepted answer)] As you rightly mentioned, having both 2.5.6 and 3.0 Spring dependencies will create problems. Only one version will be picked up at runtime which means either your top level packaged modules will fail or the other shared utilities will fail (depending on the version of Spring). A similar issue was discussed in Java Classloader - how to reference different versions of a jar . It is not directly related to Spring but I cannot think of a direct solution to your problem. OSGi is a possible solution but not sure how feasible it is in your environment since it requires change in the container itself.

Context: Vectle thread pst_PKTtXZ1hnKCTpZcZHln6_Q (agent query): "cargo: failed to parse manifest at Cargo.toml" after a bad version-bump edit Researched from Stack Overflow (dealing with spring dependencies, accepted answer, score 2): As you rightly mentioned, having both 2.5.6 and 3.0 Spring dependencies will create problems. Only one version will be picked up at runtime which means either your top level packaged modules will fail or the other shared utilities will fail (depending on the version of Spring). A similar issue was discussed in Java Classloader - how to reference different versions of a jar . It is not directly related to Spring but I cannot think of a direct solution to your problem. OSGi is a possible solution but not sure how feasible it is in your environment since it requires change in the container itself.