What I'm trying to do is very similar to this, I just wanted to know if the answer is up to date since this problem was answered 4 years ago.
So, I have 2 maven project let's say A and B, project A depends on Spring 3 project B depends on Spring 5, I want to add some project B functionalities to project A so I have added B as a dependency to project A, the problem is that now project A have 2 conflicting spring versions spring 3 and 5 and I can't use spring 5 since it's not backward-compatible.
I'm using maven for dependency management, I don't know if the solution provided in this post is working I haven't tried it yet (it seems to be a long procedure) I want the easiest way to do it;
please help.