I'm trying to deploy my site to sourceforge using either SCP or SFTP and I
keep getting an error because it tries to create a root directory, which it
shouldn't do because of sourceforge security policy. Here is my
distributionManagement section:

<distributionManagement>
       <site>
           <id>sourceforge</id>
           <name>SourceForge server</name>
           <url>scp://shell.sourceforge.net/tagspot/htdocs/dev</url>
       </site>
       <downloadUrl>
http://sourceforge.net/project/showfiles.php?group_id=${maven.sourceforge.project.groupId}
</downloadUrl>
   </distributionManagement>

And here is the error message I get:

W:\data\dev\tagspot-project\trunk>mvn site:deploy
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'site'.
[INFO]
-------------------------------------------------------------------------
---
[INFO] Building TagSpot
[INFO]    task-segment: [site:deploy]
[INFO]
-------------------------------------------------------------------------
---
[INFO] [site:deploy]
The authenticity of host 'shell.sourceforge.net' can't be established.
DSA key fingerprint is 4c:68:03:d4:5c:58:a6:1d:9d:17:13:24:14:48:ba:99.
Are you sure you want to continue connecting? (yes/no): yes
Password for [EMAIL PROTECTED]: b8m6ckz7
scp://shell.sourceforge.net/tagspot/htdocs/dev - Session: Opened
Executing command: mkdir -p /tagspot/htdocs/dev/.
scp://shell.sourceforge.net/tagspot/htdocs/dev - Session: Disconnecting
scp://shell.sourceforge.net/tagspot/htdocs/dev - Session: Disconnected
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Error uploading site

Embedded error: Error performing commands for file transfer
Exit code: 1 - mkdir: cannot create directory `/tagspot': Permission denied
[INFO]
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 15 seconds
[INFO] Finished at: Thu May 04 12:47:49 CEST 2006
[INFO] Final Memory: 3M/6M
[INFO]
------------------------------------------------------------------------

I've created the tagspot/htdocs/dev directory myself so I'm sure it exists.
Is there a way to tell site plugin to to try to create parent directory ?

--
Sébastien Arbogast

The Epseelon Project : http://www.epseelon.net
Blog : http://sebastien-arbogast.epseelon.net
TagSpot : http://www.tagspot.org

Reply via email to