On Wed, Aug 15, 2012 at 12:54 PM, Eric Kolotyluk <[email protected]>wrote: > > Basically, when I have a situation where I have some username and password > for the scm plugin, where do I store such information, and how do I > configure the scm plugin, the release plugin, etc. to find that > information? >
When a server of any kind is referenced in a pom.xml, if you have an equivalently-identified <server> element in your settings.xml, then its <username> and <password> entries are used for credentials. (See http://www.sonatype.com/books/mvnref-book/reference/appendix-settings-sect-details.html#appendix-settings-sect-servers .) A settings.xml file is a local file stored under your home directory, in a directory named .m2. (See http://maven.apache.org/ref/3.0.4/maven-settings/settings.html.) Storing your password in plain text in your settings.xml file is sometimes (always?) bad practice. In that case you should look into encrypting the passwords that are contained therein. (See http://www.sonatype.com/books/mvnref-book/reference/appendix-settings-sect-details.html#appendix-settings-sect-encrypting-passwords .) Hope that helps, Best, Laird -- http://about.me/lairdnelson
