3

I have a maven repo set up in AWS CodeArtifact. I am using maven-publish plugin with Gradle to publish the artifacts. However, gradle exits with the following error -

Could not GET 'https://.../maven-metadata.xml'. Received status code 403 from server: Forbidden
shivamag00
  • 661
  • 8
  • 13

1 Answers1

2

This is because the AWS Role/User which is being used to authenticate to AWS CodeArtifact does not have the following permissions on the forbidden resource -

"codeartifact:Get*",
"codeartifact:Describe*",
"codeartifact:List*",
"codeartifact:ReadFromRepository"
shivamag00
  • 661
  • 8
  • 13