Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support environment variables in settings.xml file #17

Open
hans-kurel opened this issue Oct 16, 2024 · 1 comment
Open

Support environment variables in settings.xml file #17

hans-kurel opened this issue Oct 16, 2024 · 1 comment

Comments

@hans-kurel
Copy link

Currently, the <username> and <password> tags in settings.xml don't support environment variables. When I try using <username>${env.AWS_ACCESS_KEY_ID}</username> for example, the string literal "${env.AWS_ACCESS_KEY_ID}" is sent to AWS. Otherwise, Maven does support environment variables, so would be nice to have this support by this plugin as well.

@jgangemi
Copy link
Member

the plugin uses the DefaultCredentialsProvider, so you shouldn't need to specify those environment variables in the settings.xml, they should just be automatically picked up provided they match the expected variable names.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants