[ http://jira.codehaus.org/browse/MNG-1972?page=all ] Adrian closed MNG-1972: -----------------------
Resolution: Fixed My mistake. I placed the settings.xml in the wrong location. BTW I cannot find anywhere on the maven site telling you to place the settings.xml in your repository. > cannot pass a username to the scp command > ----------------------------------------- > > Key: MNG-1972 > URL: http://jira.codehaus.org/browse/MNG-1972 > Project: Maven 2 > Type: Bug > Components: POM, Command Line > Versions: 2.0, 2.0.1, 2.0.2 > Environment: Linux > Reporter: Adrian > Priority: Blocker > Fix For: 2.0.3 > > > Maven ignores the username set in settings.xml for the server used as the > deploy repository. > We are running continuum as root on startup of our build server, thus maven > runs as root. We want maven to connect to our deploy server as the user named > "build". We have created ssh rsa keys for connecting that work fine and can > ssh without a password using these keys. The issue we are having is that the > scp command ignores the settings in settings.xml telling it to use the build > user and instead attempts to login as root. > The deployment repository is set up as follows: > --------------------------------------------------------------------- > <repository> > <id>ukdev-repo</id> > <name>Central repository on ukdev</name> > <url>scp://<servername>/<path></url> > </repository> > --------------------------------------------------------------------- > The settings xml is as follows: > --------------------------------------------------------------------- > <settings> > <servers> > <server> > <id>ukdev-repo</id> > <username>build</username> > </server> > </servers> > </settings> -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]