Consider a Maven project with three modules Common, ServiceA, ServiceB where both services depend on Common and produce a
Common
ServiceA
ServiceB