I've finally got it working. I was confused by the url of the repository and the path to it. Basically to browse the repo using the url in a browser, it's https://internalrepo/maven_respository since my apache server is hosting, but the actual path using sftp is sftp://internalrepo/opt/apache/htdocs/maven_repository.
Sorry for the noise, but hopefully, it will help others... Frank Russo Senior Developer FX Alliance, LLC -----Original Message----- From: Frank Russo Sent: Friday, January 20, 2006 10:17 AM To: Maven Users List Subject: RE: Problem deploying to internal repository using ssh2/sftp Forgot to mention that I'm using version 2.0.2. Frank Russo Senior Developer FX Alliance, LLC -----Original Message----- From: Frank Russo Sent: Friday, January 20, 2006 10:15 AM To: [email protected] Subject: Problem deploying to internal repository using ssh2/sftp I'm trying to use wagon to deploy to an internal server. We use ssh2, so I read that I'm supposed to use the sftp protocol. Here are my entries in pom.xml: ... <extensions> <extension> <groupId>org.apache.maven.wagon</groupId> <artifactId>wagon-ssh</artifactId> <version>1.0-alpha-6</version> </extension> </extensions> ... <distributionManagement> <repository> <id>internal_repository</id> <name>Internal Repository</name> <url>sftp://internalrepo/maven_repository/</url> </repository> <snapshotRepository> <id>internal_repository</id> <name>Internal Repository</name> <url>sftp://internalrepo/maven_repository/</url> </snapshotRepository> </distributionManagement> Entries in settings.xml: <server> <id>internal_repository</id> <username>username</username> <password>password</password> </server> The error I get is: [INFO] ------------------------------------------------------------------------ ---- [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ ---- [INFO] Error deploying artifact: Error occured while deploying 'com/fxall/my-war-1.5.war' to remote repository: sftp://internalrepo/maven_repository/ [INFO] ------------------------------------------------------------------------ ---- [INFO] Trace org.apache.maven.lifecycle.LifecycleExecutionException: Error deploying artifact: Error occured while deploying 'com/fxall/my-war-1.5.war' to remote repository: sftp://internalrepo/maven_repository/ at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Default LifecycleExecutor.java:556) ... Caused by: org.apache.maven.plugin.MojoExecutionException: Error deploying artifact: Error occured while deploying 'com/fxall/my-war-1.5.war' to remote repository: sftp://internalrepo/maven_repository/ at org.apache.maven.plugin.deploy.DeployMojo.execute(DeployMojo.java:159) ... Caused by: org.apache.maven.artifact.deployer.ArtifactDeploymentException: Error deploying artifact: Error occured while deploying 'com/fxall/my-war-1.5.war' to remote repository: sftp://internalrepo/maven_repository/ at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(Defaul tArtifactDeployer.java:91) ... Caused by: org.apache.maven.wagon.TransferFailedException: Error occured while deploying 'com/fxall/my-war-1.5.war' to remote repository: sftp://internalrepo/maven_repository/ at org.apache.maven.wagon.providers.ssh.SftpWagon.put(SftpWagon.java:144) ... Caused by: Failure at com.jcraft.jsch.ChannelSftp.throwStatusError(Unknown Source) at com.jcraft.jsch.ChannelSftp.mkdir(Unknown Source) at org.apache.maven.wagon.providers.ssh.SftpWagon.mkdir(SftpWagon.java:219) at org.apache.maven.wagon.providers.ssh.SftpWagon.put(SftpWagon.java:91) ... 22 more Am I missing something or doing something wrong? Frank Russo Senior Developer FX Alliance, LLC --------------------------------------------------------------------- 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]
