title: Maven compiler plugin not finding local repositories
body: <p>I have a local repository as a dependency.</p>
  
  <p>I used <code>mvn install</code> to install it in my .m2 folder, and indeed it's there</p>
  
  <p>then in my application pom i have set this dependency </p>
  
  <pre><code>&lt;dependency&gt;
              &lt;groupId&gt;com.company&lt;/groupId&gt;
      &lt;artifactId&gt;us-common&lt;/artifactId&gt;
      &lt;version&gt;0.0.1-RELEASE&lt;/version&gt;
          &lt;/dependency&gt;
  </code></pre>
  
  <p>I have no errors when importing classes from it in my project but when i try to compile or package the app, with mvn clean compile or mvn clean package Maven gives me the error </p>
  
  <pre><code>[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.0:compile (default-compile) on project us-auth: Compilation failure: Compilation failure:
  ... package com.company.us.common.security does not exist
  </code></pre>
  
  <p>I have tried to delete the package from my .m2 folder and reinstall it with no luck, i usually use local dependencies in this way, i don't know how to search anymore...</p>