[ http://jira.codehaus.org/browse/MSITE-25?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Rahul Akolkar updated MSITE-25: ------------------------------- Attachment: MSITE-25.settings.xml.fragment.txt MSITE-25.sample.pom.xml I will try to provide the simplest sample project (well, its just a pom, but ... :-) Recipe: (0) Add <server> from attached MSITE-25.settings.xml.fragment.txt to your settings.xml (1) Add attached MSITE-25.sample.pom.xml to a newly created local directory (as pom.xml) (2) mvn site-deploy (in above directory) This is designed to fail. Depending on whether you have commandline ssh or not, you will either see things along the lines of "Host does not exist" or "'ssh' is not recognized as an internal or external command, operable program or batch file." Note that in any case, the sshExecutable used is 'ssh' whereas we're requesting 'plink' in the server configuration. See other comments in this JIRA for complete console readout. (3) Apply my patch MSITE-25-01.patch to the maven-site-plugin, install 2.0-beta-7-SNAPSHOT locally. See previous comments for rationale about the patch. (4) mvn site:deploy This will still fail :-) but the sshExecutable will be 'plink' as desired. I'm happy to answer questions if any of this is unclear. Thanks for your time. > mvn site:site ignores server configuration in settings.xml > ---------------------------------------------------------- > > Key: MSITE-25 > URL: http://jira.codehaus.org/browse/MSITE-25 > Project: Maven 2.x Site Plugin > Issue Type: Bug > Reporter: Alan Cabrera > Assignee: Carlos Sanchez > Priority: Critical > Fix For: 2.0-beta-6 > > Attachments: MSITE-25-01.patch, MSITE-25.sample.pom.xml, > MSITE-25.settings.xml.fragment.txt, MSITE-25.txt, > patch-MSITE-25-artifact-manager.diff, patch-MSITE-25-site-plugin.diff > > > mvn site:site ignores parts of my settings.xml: > <server> > <id>livetribe-website</id> > <filePermissions>664</filePermissions> > <directoryPermissions>775</directoryPermissions> > <configuration> > <sshExecutable>plink</sshExecutable> > <scpExecutable>pscp</scpExecutable> > </configuration> > <username>livetribe</username> > </server> > It uses the username when ssh but does not invoke plink. > [INFO] [site:deploy] > Using private key: C:\Documents and Settings\adc\.ssh\id_dsa > scpexe://repo.livetribe.org/home/projects/livetribe/public_html/maven/ - > Session: Opened > Executing command: ssh -i "C:\Documents and Settings\adc\.ssh\id_dsa" -o > "BatchMode yes" [EMAIL PROTECTED] "mkdir -p > /home/projects/livetribe/public_html/maven/." > scpexe://repo.livetribe.org/home/projects/livetribe/public_html/maven/ - > Session: Disconnecting > scpexe://repo.livetribe.org/home/projects/livetribe/public_html/maven/ - > Session: Disconnected -- 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