how to get the super pom basedir in a child module pom?
I want to define a local repository in my maven project. I've got a super pom and several child modules. My file structure is : /root /repository /child pom.xml pom.xml in my super pom I define : <repository> <id>my-local-repo</id> <url>file://${basedir}/repository</url> </repository> The problem is that in my child pom, the repository defined in my super pom refers to /root/child/repository and so, dependencies cannot be found... Is there a way to define a path always relative to the super pom ? If not, what's the best way to solve the problem ? Ricardo Silva In this case, at first you could