Maven build with local repository in code base

I have a code base similar to this:

./.circleci/config.yml
/code/pom.xml
/Tools/local/repository/

I am trying to use my local repository instead of downloading any files and I tried this, but it did not work, it still downloaded all dependencies again:

version: 2
jobs:
build:

working_directory: ~/tmp/workspace

environment:
  _JAVA_OPTIONS: "-Xms512m -Xmx1024m"
  **MAVEN_OPTS: "-Dmaven.repo.local=./Tools/local/repository"**

docker:
  - image: circleci/openjdk:8-jdk-browsers