You need to use the same id in your distribution management section in
your pom, as the server settings you want to use from server.xml. In
your case that would be 'remote-esp-dap-site'.
So putting this in your pom.xml should do it:
<distributionManagement>
<site>
<id>remote-esp-dap-site</id>
<name>DAP-Site</name>
<url>scpexe://rc-sun66e.ut.dentegra.lab/:/opt/htdocs/site/</url>
</site>
</distributionManagement>
Mick Knutson wrote:
I want to connect to a remote repository with a different user than I am
when I am compiling:
<server>
<id>remote-esp-dap-site</id>
<username>maven_user</username>
<passphrase>somephrase</passphrase>
<privateKey>c:/ssh/rc-sun66e-private.ppk</privateKey>
<configuration>
<sshExecutable>plink</sshExecutable>
<scpExecutable>pscp</scpExecutable>
</configuration>
</server>
<distributionManagement>
<site>
<id>rc_sun66e</id>
<name>DAP-Site</name>
<url>scpexe://rc-sun66e.ut.dentegra.lab/:/opt/htdocs/site/</url>
</site>
</distributionManagement>
But I get this error:
[INFO] [site:deploy]
scpexe://rc-sun66e.ut.dentegra.lab/:/opt/htdocs/site/utilities - Session:
Opened
Executing command: cmd.exe /X /C 'ssh -i "C:\Documents and
Settings\dnxmkk5\.ssh\id_rsa"
-o "BatchMode yes" [EMAIL PROTECTED] "mkdir -p ///
opt/htdocs/site/utilities/."'
'ssh' is not recognized as an internal or external command,
operable program or batch file.
scpexe://rc-sun66e.ut.dentegra.lab/:/opt/htdocs/site/utilities - Session:
Disconnecting
scpexe://rc-sun66e.ut.dentegra.lab/:/opt/htdocs/site/utilities - Session:
Disconnected
I want to use the maven_user not dnxmkk5 user. But there also seems to be an
issue with the command that is generated.
I tried following these directions:
http://ekawas.blogspot.com/2007/02/maven-windows-and-deploying-to-remote.html
--
Dennis Lundberg
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]