AWS CodeArtifact as Extension Repository

Hi,

Does anyone know how I could point XWiki at AWS CodeArtifact as an extension repository please?

I know how to set up the xwiki config in order to point it to extra repos but the configuration expects username and password properties to be set; however, AWS CodeArtifact expects the user to first get an auth token via the aws cli and store the result as an environment variable and then use the username “aws” and the environment variable as the password in Maven.

As such, is there a way to make XWiki use an environment variable as the password value?