Hi

Try scp://[EMAIL PROTECTED]/homes/maven/public_html/sites/

I scratched my head with exactly this problem for some time a while back.

Hermod

-----Original Message-----
From: Mikael Andersson [mailto:[EMAIL PROTECTED]
Sent: Monday, April 24, 2006 6:20 PM
To: [email protected]
Subject: [m2][site] Strange behaviour using site:deploy with scp.


Hi,
when I use use site:deploy with scp (on Linux), something strange happens.
The site isn't deployed to the specified location, but in a somewhat strange
location!

>From the pom:
<distributionManagement>
        <site>
            <id>maven_html</id>
            <url>scp:[EMAIL PROTECTED]
:/homes/maven/public_html/sites/</url>
        </site>
</distributionManagement>

maven output:
[INFO] [site:deploy]
scp:prod.ebi.ac.uk:/homes/maven/public_html/sites/ - Session: Opened
Executing command: mkdir -p uk//homes/maven/public_html/sites/.
Executing command: mkdir -p uk//homes/maven/public_html/sites/.
Executing command: scp -t uk//homes/maven/public_html/sites/./wagon65232.zip
Uploading: ./wagon65232.zip to scp:
prod.ebi.ac.uk:/homes/maven/public_html/sites/

###############################
Transfer finished. 122920 bytes copied in 0.092 seconds
Executing command: cd uk//homes/maven/public_html/sites/.; unzip -q -o
wagon65232.zip; rm -f wagon65232.zip
scp:prod.ebi.ac.uk:/homes/maven/public_html/sites/ - Session: Disconnecting
scp:prod.ebi.ac.uk:/homes/maven/public_html/sites/ - Session: Disconnected
[INFO]
------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO]
------------------------------------------------------------------------

Notice the 'uk//homes/maven/public_html/sites/.' in the commands printed in
the output, arghh. So the site is created in that users home in the
directory in 'uk//homes/maven/public_html/sites/.' .

Is there something which I've done wrong in my settings?

Help greatly appreciated,
 - Micke


* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

This email with attachments is solely for the use of the individual or
entity to whom it is addressed. Please also be aware that the DnB NOR Group
cannot accept any payment orders or other legally binding correspondence with
customers as a part of an email. 

This email message has been virus checked by the virus programs used
in the DnB NOR Group.

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to