I'm having an issue with sftp using the wagon plugin. When I try to
deploy to our company repository, I'm getting the following error:

        [INFO] Error installing artifact's metadata: Error while
deploying metadata: Error occured while deploying
'com/fxall/fxalladmin/fxalladmin-pom/maven-metadata.xml' to remote
repository: sftp://ipaddress/opt/fxall/maven2/internal
         
        [INFO]
------------------------------------------------------------------------
----
        [INFO] Trace
        org.apache.maven.lifecycle.LifecycleExecutionException: Error
installing artifact's metadata: Error while deploying metadata: Error
occured while deploying
'com/fxall/fxalladmin/fxalladmin-pom/maven-metadata.xml' to remote
repository: sftp://ipaddress/opt/fxall/maven2/internal
                at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Default
LifecycleExecutor.java:556)
         
        ...other misc stack trace info...
         
        Caused by: syserr: Not owner, file:
/opt/fxall/maven2/internal/com/fxall/fxalladmin/fxalladmin-pom/maven-met
adata.xml
                at com.jcraft.jsch.ChannelSftp.throwStatusError(Unknown
Source)
                at com.jcraft.jsch.ChannelSftp._setStat(Unknown Source)
                at com.jcraft.jsch.ChannelSftp.chmod(Unknown Source)
                at
org.apache.maven.wagon.providers.ssh.SftpWagon.put(SftpWagon.java:122)
                ... 23 more

The file, along with all the files from the prior build, is owned by my
coworker, but the file and directory permissions are set to 777. If I
ssh to the server, with the same username/password used by maven, I can
edit, delete, etc to any file in the directory. 
 
Has anyone encountered this at all? 
 
Frank Russo
Senior Developer
FX Alliance, LLC

Reply via email to