The .mvn directory is not picked up when using the --file switch to build a project from outside of the multi-module root.
- the module root is /foo/bar
- .mvn is located at /foo/bar/.mvn
- current directory is /foo
- Maven is invoked with mvn --file bar/module/pom.xml
I would expect the .mvn directory detection to start at the directory of the POM selected by --file and then go through the parent directories.