I am getting NoClassDefFoundError while trying to load a class which seems to be due to dependency version conflict.
Project A -> Project B -> Project C.
We have included version 2.0 for Project C within Project A.
whereas
Project B needs version 1.0 for Project C.
Right now when Project B code tries to load the class from Project C, it gets version 2.0.
Is there a way, I can explicitly define to refer to Project C (version 1.0 ) if project B tries to do so and in all other cases it should pick version 2.0
I mean the way we can exclude the transitive dependency, Is there a way to explicitly define inclusion ( only for the reference from the respective project and not the whole application code ).
Thanks.