title: GCLOUD Artifact Registry: Permissions error downloading maven dependency uploaded manually with Cloud Build
body: <p>I have uploaded manually an maven dependency to my artifact repository</p>
  <p><strong>From my local PC</strong>, &quot;mvn install&quot; download correctly every maven dependency from the artifact repository, included my manually uploaded dependency.</p>
  <hr />
  <p>mvn -U clean  install -DskipTests=true</p>
  <p>[INFO] Scanning for projects...</p>
  <p>[INFO]</p>
  <p>[INFO] -----------------&lt; com.healthcentrix.prevvy:frontend &gt;------------------</p>
  <p>[INFO] Building frontend 2.1-SNAPSHOT</p>
  <p>[INFO] --------------------------------[ jar ]---------------------------------</p>
  <p>Downloading from cloud-artifacts: artifactregistry://us-central1-maven.pkg.dev/prevvy1/artifacts/org/moxieapps/gwt/highcharts/1.7.2/highcharts-1.7.2.pom
  Downloaded from cloud-artifacts: artifactregistry://us-central1-maven.pkg.dev/prevvy1/artifacts/org/moxieapps/gwt/highcharts/1.7.2/highcharts-1.7.2.pom (401 B at 90 B/s)</p>
  <p>Downloading from cloud-artifacts: artifactregistry://us-central1-maven.pkg.dev/prevvy1/artifacts/org/moxieapps/gwt/highcharts/1.7.2/highcharts-1.7.2.jar
  Downloaded from cloud-artifacts: artifactregistry://us-central1-maven.pkg.dev/prevvy1/artifacts/org/moxieapps/gwt/highcharts/1.7.2/highcharts-1.7.2.jar (521 kB at 376 kB/s)</p>
  <hr />
  <p><strong>From Cloud Build or cloud-build-local</strong>, we got an permission error</p>
  <hr />
  <pre><code>[ERROR] Failed to execute goal on project frontend: Could not resolve dependencies for project com.healthcentrix.prevvy:frontend:jar:2.1-SNAPSHOT:
  </code></pre>
  <p>Failed to collect dependencies at org.moxieapps.gwt:highcharts:jar:1.7.2:
  Failed to read artifact descriptor for org.moxieapps.gwt:highcharts:jar:1.7.2:
  Could not transfer artifact org.moxieapps.gwt:highcharts:pom:1.7.2 from/to cloud-artifacts (artifactregistry://us-central1-maven.pkg.dev/prevvy1/artifacts):
  Permission denied on remote repository (or it may not exist).
  The request had no credentials because none were available from the environment.
  Ensure that either 1) You are logged into gcloud or 2) Application default credentials are setup (see <a href="https://developers.google.com/accounts/docs/application-default-credentials" rel="nofollow noreferrer">https://developers.google.com/accounts/docs/application-default-credentials</a> for more information). 403 Forbidden
  Step #0: [builder] [ERROR] {&quot;error&quot;:&quot;Permission &quot;artifactregistry.repositories.downloadArtifacts&quot; denied on resource &quot;projects/prevvy1/locations/us-central1/repositories/artifacts&quot; (or it may not exist)&quot;}</p>
  <hr />
  <p>Our Cloud build Project service account has every Artifact Registry permission, and is downloading the rest of depedencies excluding this specific artifact, which was uploaded manually</p>
  <p>is necessary to give some specific permissions to this specific artifact? how?</p>
  <p>Thanks in advance for any guidance
  Regards</p>