Maven 2.x and 3.x Site Plugin

Deploying site with sftp or scp creates directory with name "-p"

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Won't Fix
  • Affects Version/s: 2.0-beta-5
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None
  • Environment:
    Windows XP SP2, maven 2.0.4
  • Number of attachments :
    0

Description

On Windows XP, with maven 2.0.4 and site plugin 2.0-beta-5 when doing site:deploy with

<distributionManagement>
<site>
<id>website</id>
<name>my project site</name>
<url>sftp://my.server/project</url>
</site>
</distributionManagement>

a command mkdir -p /project/ is issued which I think is not correct

When executing from cmd window

C:\Documents and Settings\Borut\Desktop\Workspace\MyProject>ftp
my.server
Connected to my.server.
220 (vsFTPd 2.0.3)
User (my.server:(none)): myusername
331 Please specify the password.
Password:
230 Login successful.
ftp> mkdir -p /project/
257 "/-p" created
ftp>

Instead of creating /project directory, the ftp client creates a directory with name "-p". I think that is the reason the site:deploy fails. See bellow.

C:\Documents and Settings\Borut\Desktop\Workspace\MyProject>mvn
site:deploy
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'site'.
[INFO]
----------------------------------------------------------------------------
[INFO] Building MyProject
[INFO] task-segment: [site:deploy]
[INFO]
----------------------------------------------------------------------------
[INFO] [site:deploy]
The authenticity of host 'my.server' can't be established.
RSA key fingerprint is 4a:86:2b:a7:15:29:ee:4b:10:8f:8e:73:53:b0:9e:cd.
Are you sure you want to continue connecting? (yes/no): yes
sftp://my.server/project - Session: Opened
Executing command: mkdir -p /project/.
sftp://my.server/project - Session: Disconnecting
sftp://my.server/project - 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 `/project': Permission
denied
[INFO]
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 10 seconds
[INFO] Finished at: Thu Jun 01 23:06:05 CEST 2006
[INFO] Final Memory: 7M/13M
[INFO]
------------------------------------------------------------------------

The same happens when trying to deploy with scp.

Issue Links

Activity

Hide
Carlos Sanchez added a comment -

You don't have permission in the remote machine to create /project, see

mkdir: cannot create directory `/project': Permission denied

and ftp is NOT ftp

Show
Carlos Sanchez added a comment - You don't have permission in the remote machine to create /project, see mkdir: cannot create directory `/project': Permission denied and ftp is NOT ftp
Hide
Borut Bolcina added a comment -

This is not true!

I can make make directories just fine. Please read the issue carefully. The directory with name of the first parameter gets created which is "-p" in the above case.

Also I can create files and dirs with my other ftp (visual) client tools, so the permission should not be the case.

Regards,
Borut

P.S. What do you mean ftp in NOT ftp?

Show
Borut Bolcina added a comment - This is not true! I can make make directories just fine. Please read the issue carefully. The directory with name of the first parameter gets created which is "-p" in the above case. Also I can create files and dirs with my other ftp (visual) client tools, so the permission should not be the case. Regards, Borut P.S. What do you mean ftp in NOT ftp?
Hide
Carlos Sanchez added a comment -

I meant ftp is NOT sftp. You may be able to create directories with ftp but not with sftp

Show
Carlos Sanchez added a comment - I meant ftp is NOT sftp. You may be able to create directories with ftp but not with sftp
Hide
Borut Bolcina added a comment -

With ftp and added

<extensions>
<extension>
<groupId>org.apache.maven.wagon</groupId>
<artifactId>wagon-ftp</artifactId>
</extension>
</extensions>

under <build>, I get

C:\Documents and Settings\Borut\Desktop\Workspace\MyProject>mvn site:deploy
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'site'.
[INFO] artifact org.apache.maven.wagon:wagon-ftp: checking for updates from agilejava
[INFO] artifact org.apache.maven.wagon:wagon-ftp: checking for updates from central
Downloading: http://mirrors.dotsrc.org/maven2/org/apache/maven/wagon/wagon-ftp/1.0-alpha-6/wagon-ftp-1.0-alpha
-6.pom
806b downloaded
Downloading: http://agilejava.com/maven/org/apache/maven/wagon/wagon-providers/1.0-alpha-6/wagon-providers-1.0
-alpha-6.pom
[WARNING] Unable to get resource from repository agilejava (http://agilejava.com/maven)
Downloading: http://mirrors.dotsrc.org/maven2/org/apache/maven/wagon/wagon-providers/1.0-alpha-6/wagon-provide
rs-1.0-alpha-6.pom
1K downloaded
Downloading: http://agilejava.com/maven/commons-net/commons-net/1.4.1/commons-net-1.4.1.pom
[WARNING] Unable to get resource from repository agilejava (http://agilejava.com/maven)
Downloading: http://mirrors.dotsrc.org/maven2/commons-net/commons-net/1.4.1/commons-net-1.4.1.pom
4K downloaded
Downloading: http://mirrors.dotsrc.org/maven2/org/apache/maven/wagon/wagon-ftp/1.0-alpha-6/wagon-ftp-1.0-alpha
-6.jar
8K downloaded
Downloading: http://agilejava.com/maven/commons-net/commons-net/1.4.1/commons-net-1.4.1.jar
[WARNING] Unable to get resource from repository agilejava (http://agilejava.com/maven)
Downloading: http://mirrors.dotsrc.org/maven2/commons-net/commons-net/1.4.1/commons-net-1.4.1.jar
176K downloaded
[INFO] ----------------------------------------------------------------------------
[INFO] Building MyProject
[INFO] task-segment: [site:deploy]
[INFO] ----------------------------------------------------------------------------
[INFO] [site:deploy]
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Wagon protocol 'ftp' doesn't support directory copying
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 7 seconds
[INFO] Finished at: Sat Jun 03 12:18:53 CEST 2006
[INFO] Final Memory: 7M/15M
[INFO] ------------------------------------------------------------------------

which is http://jira.codehaus.org/browse/WAGONFTP-7

I guess I am stuck.

Show
Borut Bolcina added a comment - With ftp and added <extensions> <extension> <groupId>org.apache.maven.wagon</groupId> <artifactId>wagon-ftp</artifactId> </extension> </extensions> under <build>, I get C:\Documents and Settings\Borut\Desktop\Workspace\MyProject>mvn site:deploy [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'site'. [INFO] artifact org.apache.maven.wagon:wagon-ftp: checking for updates from agilejava [INFO] artifact org.apache.maven.wagon:wagon-ftp: checking for updates from central Downloading: http://mirrors.dotsrc.org/maven2/org/apache/maven/wagon/wagon-ftp/1.0-alpha-6/wagon-ftp-1.0-alpha -6.pom 806b downloaded Downloading: http://agilejava.com/maven/org/apache/maven/wagon/wagon-providers/1.0-alpha-6/wagon-providers-1.0 -alpha-6.pom [WARNING] Unable to get resource from repository agilejava (http://agilejava.com/maven) Downloading: http://mirrors.dotsrc.org/maven2/org/apache/maven/wagon/wagon-providers/1.0-alpha-6/wagon-provide rs-1.0-alpha-6.pom 1K downloaded Downloading: http://agilejava.com/maven/commons-net/commons-net/1.4.1/commons-net-1.4.1.pom [WARNING] Unable to get resource from repository agilejava (http://agilejava.com/maven) Downloading: http://mirrors.dotsrc.org/maven2/commons-net/commons-net/1.4.1/commons-net-1.4.1.pom 4K downloaded Downloading: http://mirrors.dotsrc.org/maven2/org/apache/maven/wagon/wagon-ftp/1.0-alpha-6/wagon-ftp-1.0-alpha -6.jar 8K downloaded Downloading: http://agilejava.com/maven/commons-net/commons-net/1.4.1/commons-net-1.4.1.jar [WARNING] Unable to get resource from repository agilejava (http://agilejava.com/maven) Downloading: http://mirrors.dotsrc.org/maven2/commons-net/commons-net/1.4.1/commons-net-1.4.1.jar 176K downloaded [INFO] ---------------------------------------------------------------------------- [INFO] Building MyProject [INFO] task-segment: [site:deploy] [INFO] ---------------------------------------------------------------------------- [INFO] [site:deploy] [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Wagon protocol 'ftp' doesn't support directory copying [INFO] ------------------------------------------------------------------------ [INFO] For more information, run Maven with the -e switch [INFO] ------------------------------------------------------------------------ [INFO] Total time: 7 seconds [INFO] Finished at: Sat Jun 03 12:18:53 CEST 2006 [INFO] Final Memory: 7M/15M [INFO] ------------------------------------------------------------------------ which is http://jira.codehaus.org/browse/WAGONFTP-7 I guess I am stuck.
Hide
Borut Bolcina added a comment -

I managed to deploy my site with scp.

Show
Borut Bolcina added a comment - I managed to deploy my site with scp.

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: