technomancy/leiningen — Issue #424: Allow regexes as keys in :repository-auth
Author: cemerick
Created: 2012-02-24 00:19:43+00:00
State: open
Labels: 2.0

Right now, you have to repeat credentials multiple times in profiles if you have multiple repositories on the same server (e.g. a nexus instance that has multiple repositories, groups, and proxies, all requiring the same credentials).

If keys could be regexes in `:repository-auth`, then one could add credentials under a key of `#"https://maven.company.com/.*"`. Overrides could be specified using an exact string match (that would be found when the repository URL is looked up in the map); if no exact match is found, a scan of regex keys that match the target repository URL would determine the credentials to use.

Thoughts?