How does one specify the IAM Role for accessing an S3 Maven Repo?

I would have liked to respond to S3 resources should not require credentials but the thread appears to be locked.

When adding an S3 bucket repository, one can specify Access Keys, but how do you specify a Role ARN for cross-account access?

In our case, all IAM users are in one account and the buckets in question are in a member account and only accessible by assuming a role into that account. (STS Credentials)

This is usually configured by specifying a Role ARN instead of Access Keys.

Is there an existing solution to this scenario? The documentation briefly mentions cross-account usage but does not elaborate on the setup.

Thanks for your insight!
Mike