The account you use to log in for SFTP needs to own the deployed artifacts.
If your account does not have permission to replace the file on the
server, the owner account does not want you to be replacing it. Only
the owner (or root) is allowed to set the permissions on the file
according to their purposes.
Perhaps you should deploy to a different location owned by your
account and have the owner copy that artifact into their location if
they approve of the change.
-- Lee
On Nov 21, 2007 11:01 AM, Rémy Sanlaville <[EMAIL PROTECTED]> wrote:
> I tried to go more in depth to understand the problem.
>
> In short:
> It seems that the problem comes from the class
> org.apache.maven.wagon.providers.ssh.jsch.SftpWagon from wagon-ssh version
> 1.0-beta-2
>
> In fact, in line 88
> 86 if ( permissions != null && permissions.getFileMode() != null
> )
> 87 {
> 88 setFileMode( channel, filename, permissions );
> 89 }
>
> SftpWagon ask to change the FileMode (by default 664).
> But it's not possible to change the file mode if you aren't the owner.
> So an exception is raised:
>
> [INFO] Error installing artifact's metadata: Error while deploying
> metadata: Error occured while deploying 'test/cp/maven-metadata.xml' to
> remote repository: sftp://maven2/proxy/inhouse
>
> I think it's a bug.
> It works if you create the first time or if you are the owner of the file
> but it can't work it you aren't the owner.
>
> Rémy
>
--
-- Lee Meador
Sent from gmail. My real email address is lee AT leemeador.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]