So I have a large Java project, which I'll call ProjectA. I have another project, ProjectB, which is a Maven project, and includes ProjectA as a dependency (by compiling ProjectA to a jar file). I also have many other Maven projects: ProjectC1, ProjectC2, etc. Each of these include ProjectB as a Maven dependency.
ProjectB contains code meant to be common/accessible to all of the ProjectC projects, as well as act as an interface to access some functionality from ProjectA. The problem is: in order to do this, I either have to write a method/class in ProjectB that explicitly calls/extends the method/class from ProjectA that I want to call, or I have to explicitly include ProjectA itself as a dependency in the ProjectCx project (which is undesirable due to the size of ProjectA).
Is there a way to access the members of ProjectA indirectly from ProjectC via ProjectB somehow?