I have a java project with two maven modules (moduleA and moduleB), where each module want to access different versions (v1 and v2) of the same library. moduleA uses moduleB as a dependency. I created moduleB mainly to get around this problem and also thought it will keep the code well organized.
I have used maven shade plugin in moduleA's pom.xml, thinking it will help me differentiate the classes from each version but i still get "NoSuchMethodError" even though that method is available in v2 version of the library. Any help would be highly appreciated.