Functions to work with maven settings.xml and settings-security.xml.
Functions to work with maven settings.xml and settings-security.xml.
(active-profiles)
(active-profiles settings)
Map of active profile name to ^org.apache.maven.settings.Profile instance.
Map of active profile name to ^org.apache.maven.settings.Profile instance.
(active-repositories)
(active-repositories settings)
Returns a list of active repositories from settings.xml active profiles. Does not include crededentials.
Returns a list of active repositories from settings.xml active profiles. Does not include crededentials.
(decode-password encoded-password key)
Decodes a password (got from settings.xml).
Decodes a password (got from settings.xml).
(decode-server-password plain-master-pw server)
Decodes the server password, given a ^Server and plain master password.
Decodes the server password, given a ^Server and plain master password.
(deps-repo-by-id repo-id)
(deps-repo-by-id repo-id settings settings-security)
Return a map from repository id to repository settings. Result can be passed to deps-deploy/deploy fn: {repo-id (get (desp-repositories s ss) repo-id)}
If not provided, will read $HOME/.m2/settings.xml and $HOME/.m2/settings-security.xml.
Return a map from repository id to repository settings. Result can be passed to deps-deploy/deploy fn: {repo-id (get (desp-repositories s ss) repo-id)} If not provided, will read $HOME/.m2/settings.xml and $HOME/.m2/settings-security.xml.
(deps-repositories)
(deps-repositories settings settings-security)
Returns a map of repo id -> repository settings for easy consumption by deps-deploy. Repositories are read from settings.xml. Passwords for each server are decoded and added to each repo.
Returns a map of repo id -> repository settings for easy consumption by deps-deploy. Repositories are read from settings.xml. Passwords for each server are decoded and added to each repo.
(read-settings)
(read-settings settings-path)
Reads settings.xml file into a ^Settings object. Defaults to $HOME/.m2/settings.xml.
Reads settings.xml file into a ^Settings object. Defaults to $HOME/.m2/settings.xml.
(read-settings-security)
(read-settings-security settings-security-path)
Reads settings-security.xml file into an ^SettingsSecurity object. Defaults to $HOME/.m2/settings-security.xml .
Reads settings-security.xml file into an ^SettingsSecurity object. Defaults to $HOME/.m2/settings-security.xml .
(server-credentials plain-master-pw server)
Returns a map from server id -> server settings including decoded password and ^Server instance.
Returns a map from server id -> server settings including decoded password and ^Server instance.
(servers-with-passwords)
(servers-with-passwords settings settings-security)
Decodes the passwords from servers. Returns a map from server id -> server settings (including credentials).
Decodes the passwords from servers. Returns a map from server id -> server settings (including credentials).
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close