-
Notifications
You must be signed in to change notification settings - Fork 3
Description
In case a context is build from a local maven project, then currently dependencies are always resolved via the local repository. If these dependencies belong to a sibling module of the same local reactor project we should resolve the code from that local module instead as the artifacts in the local repo may be missing or outdated.
The challenge is to find a way to solve this without causing a performance trap during the bootstrapping. We already spent a lot of energy to load things lazily to make first access fast. To resolve this we would need to read all modules from all parents and resolve their POMs (as effective model) what would require quite some parsing time. Also we need to be careful to check that GAV coordinates match exactly and otherwise we still need to fallback to the artifact from local repo. To boost performance we could maybe rely on some conventions or assumptions such that e.g. the groupId of module siblings may be the same, however this must not be the case and may therefore not work as expected in edge-cases.