Since system scope is said to be deprecated and dangereous, we use a local repository. The repository is in the parent folder and used by most of the submodules. Now including the repo gets messy. Providing the url is sort of a hack.
We tried ${project.parent.basedir}/repo in the submodules, but this evaluates to nothing. We also tried to set it in the parent pom, ...
<repository>
<id>project_repo</id>
<url>file://${project.basedir}/project_repo</url>
</repository>
but maven decides to ship the url as given to the submodules which in tu evaluate the property. This lead us to the mess of just taking the relative parent dir, forcing the submodules to be subfolders of the parent pom:
<url>file://${project.basedir}/../project_repo</url>
This is problem Y. The question conceing X is, why does maven inherit before evaluation and how can I avoid this?
