>> do know that FTP will most likely be a lot slower then ssh
I'm in the process of setting up an internal server, which need to be
accessed outside vpn but still be protected/restricted.

There are two cases against ssh
[1] The sysop don't like to create accounts for all potential users
[2] I haven't succeeded with site:deploy using the windows/putty/scpexe
combo 
        (depends download and deploy upload works fine) 

The web part of the site is accessed by https/clientCerts, 
which is really good from both a security and usability point of view. 

However, to my knowledge neither https nor clientCerts are supported by
mavan/wagon.
I don't know about the status of the wagon DAV provider and if it
eventually will support https with clientCerts.

With ftp I have created a maven user with 
[a] restricted permissions 
[b] no login shell
[c] chroot to its home dir and created the mvn repo and site dir there

This gives an acceptable level of security and I can both download and
upload.
The last remaining task is to provide a way to perform site:deploy. 

It seems to me that the site:deploy implementation do not use the wagon
providers in the same way as deploy:deploy.

Maybe, have to advise the users to stick to plain old ftp upload for the
site files.

Comments and/or suggestions are highly welcome.
        /Jens



-----Original Message-----
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Geoffrey De Smet
Sent: 30 March 2006 12:41
To: users@maven.apache.org
Subject: Re: [M2] mvn site:deploy throws an exception

I don't know, but I do know that FTP will most likely be a lot slower 
then ssh in practice:
- ssh deploy creates one big zip, sends that and unzips it.
- ftp sends file per file.

Deploying my site manually with filezilla (multiple select) over ftp 
took me +1 hour. Maybe it doesn't use true multiple file sending?
Deploying my site automatically with ssh-deploy took less then 10
minutes.

Jens Riboe wrote:
> I'm trying to use FTP for site deployment, but get an exception.
> Is FTP supported, for site upload?
> 
> C:\temp\nnn>mvn -e site:deploy
> + Error stacktraces are turned on.
> [INFO] Scanning for projects...
> [INFO] Searching repository for plugin with prefix: 'site'.
> [INFO]
>
------------------------------------------------------------------------
> ----
> [INFO] Building Whatever
> [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] Trace
> org.apache.maven.lifecycle.LifecycleExecutionException: Wagon protocol
> 'ftp' doesn't support directory copying
>         at
>
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Default
> LifecycleExecutor.java:559)
>         at
>
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoa
> l(DefaultLifecycleExecutor.java:488)
>         at
>
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultL
> ifecycleExecutor.java:458)
>         at
>
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandle
> Failures(DefaultLifecycleExecutor.java:306)
>         at
>
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(
> DefaultLifecycleExecutor.java:273)
>         at
>
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifec
> ycleExecutor.java:140)
>         at
> org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
>         at
org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at
>
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
> a:39)
>         at
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
> Impl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:585)
>         at
> org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
>         at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
>         at
> org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
>         at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> Caused by: org.apache.maven.plugin.MojoExecutionException: Wagon
> protocol 'ftp' doesn't support directory copying
>         at
>
org.apache.maven.plugins.site.SiteDeployMojo.execute(SiteDeployMojo.java
> :120)
>         at
>
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginMa
> nager.java:412)
>         at
>
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Default
> LifecycleExecutor.java:534)
>         ... 16 more
> [INFO]
>
------------------------------------------------------------------------
> [INFO] Total time: 2 seconds
> [INFO] Finished at: Wed Mar 29 23:12:06 CEST 2006
> [INFO] Final Memory: 2M/6M
> [INFO]
>
------------------------------------------------------------------------

-- 
With kind regards,
Geoffrey De Smet


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


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

Reply via email to