title: Use a dependency from Private Package registry in another project in maven
body: <p>I am using Gitlab CI to generate a Package in private project to Package Registry.
  In another project, I am using this package as a dependency and It tell me that:</p>
  <p>Cannot resolve fr.drevit.rpg_core:RPG-Core:1.0</p>
  <p>My settings are the following:</p>
  <p>Pom.xml of the depending project:</p>
  <pre><code> &lt;repositories&gt;
      &lt;repository&gt;
          &lt;id&gt;gitlab-maven&lt;/id&gt;
          &lt;url&gt;https://gitlab.com/api/v4/projects/26858655/packages/maven&lt;/url&gt;
      &lt;/repository&gt;
  ......
  &lt;distributionManagement&gt;
      &lt;repository&gt;
          &lt;id&gt;gitlab-maven&lt;/id&gt;
          &lt;url&gt;https://gitlab.com/api/v4/projects/26858655/packages/maven&lt;/url&gt;
      &lt;/repository&gt;
  
      &lt;snapshotRepository&gt;
          &lt;id&gt;gitlab-maven&lt;/id&gt;
          &lt;url&gt;https://gitlab.com/api/v4/projects/26858655/packages/maven&lt;/url&gt;
      &lt;/snapshotRepository&gt;
  &lt;/distributionManagement&gt;
  ......
  &lt;dependency&gt;
      &lt;groupId&gt;fr.drevit.rpg_core&lt;/groupId&gt;
      &lt;artifactId&gt;RPG-Core&lt;/artifactId&gt;
      &lt;version&gt;1.0&lt;/version&gt;
  &lt;/dependency&gt;
  </code></pre>
  <p>Settings.xml:</p>
  <pre><code>&lt;server&gt;
    &lt;id&gt;gitlab-maven&lt;/id&gt;
    &lt;configuration&gt;
      &lt;httpHeaders&gt;
        &lt;property&gt;
          &lt;name&gt;Private-Token&lt;/name&gt;
          &lt;value&gt;TOKEN&lt;/value&gt;
        &lt;/property&gt;
      &lt;/httpHeaders&gt;
    &lt;/configuration&gt;
  &lt;/server&gt;
  </code></pre>
  <p>I don't know how to resolve my issue and I tried a lot of things but it doesn't work :/</p>