I have a program where I have the same java method at two different locations. I have a java class, e.g., public class foo located "jiatfw-core
"or Module B, I also have this same class (foo) located in module "core
" or Module C. I am running my main class from a module called "jiatfw-bl
" or Module A.
My problem is that my Module A is using the code in Module C or "core" where the class was originally defined, but I want it to use the class located in Model B or "jiatfw-core" which overrides the methods used in the base core.
Below is a cutout of my POM file located in module A or "jiatfw-bl
I believe that which ever dependency is defined first is used first. Identical to defining different classes in a java classPath statement.
Can someone suggest to me what I might be doing wrong. Attached is a graph showing the relationship between modules.