mavenLocal() ignores maven.repo.path system property

I’m trying to use a custom mavenLocal dir with the ‘-Dmaven.repo.path’ command line option.

I’m still getting errors that the dependencies can not be found in the default path:

Could not find
     Searched in the following locations:

From the docs

The location for the repository is determined as follows (in order of precedence): > >

  1. The value of system property ‘maven.repo.path’ if set;

Good catch, this is a documentation mistake in the ‘mavenLocal()’ javadoc. The property should be ‘maven.repo.local’. This will be fixed in 2.4.

Thanks! The other property works.