You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by "Tang, Ray" <ra...@bankofamerica.com> on 2009/01/22 22:12:28 UTC

maven sftp issues.

Hi:
 
I am recently required to change our current ant build process to use
new host, which has only "sftp server" turned on and traditional "ftp
server" turned off.  
 
Can someone please shed some light on how I can do a maven-sftp call?
 
Many Thanks.
 
Ray
 
 
Here is the code I try to do wth sftp.
    <target name="distRemoteBinaryRepository" if="deploy.official">
      <echo message="Deploying to remote
repo..sftp://nbs5u2j:2xadv103607@chiadvsdap62/datlib/advantage/sig/repos
itory/snapshot" level="info"/>
      <artifact:localRepository id="repo.local.id"
path="${maven.local.repo.dir}"/>
        <artifact:deploy file="${dist.artifact.file}"
settingsFile="${dist.repo.settings}" uniqueVersion="false">
         <pom refid="dist.pom.file.id"/>
         <localRepository refid="repo.local.id"/>
         <remoteRepository url="${adv.repo.remote.dist.url}">
            <authentication username="${adv.repo.remote.user}"
password="${adv.repo.remote.password}"/>
         </remoteRepository>
      </artifact:deploy>
   </target>
 
 
 
Here is the log as the build stuck on deploying to remote binrepo server
and kept rolling...

	deploy:
	     [echo] Deploying foundation to remote
sftp://nbs5u2j:2xadv103607@chiadvsdap62/datlib/advantage/sig/repository/
snapshot...
	Warning: Reference repo.local.id has not been set at runtime,
but was found during
	build file parsing, attempting to resolve. Future versions of
Ant may support
	 referencing ids defined in non-executed targets.
	[artifact:deploy] Deploying to
sftp://chiadvsdap62/datlib/advantage/sig/repository/snapshot
	[artifact:deploy] The authenticity of host 'chiadvsdap62' can't
be established.
	[artifact:deploy] DSA key fingerprint is
6e:18:0c:a0:07:70:94:18:1e:af:10:e5:5a:35:94:96.
	[artifact:deploy] Are you sure you want to continue connecting?
(yes/no): 
	[artifact:deploy] The authenticity of host 'chiadvsdap62' can't
be established.
	[artifact:deploy] DSA key fingerprint is
6e:18:0c:a0:07:70:94:18:1e:af:10:e5:5a:35:94:96.
	[artifact:deploy] Are you sure you want to continue connecting?
(yes/no): 
	[artifact:deploy] The authenticity of host 'chiadvsdap62' can't
be established.
	[artifact:deploy] DSA key fingerprint is
6e:18:0c:a0:07:70:94:18:1e:af:10:e5:5a:35:94:96.
	[artifact:deploy] Are you sure you want to continue connecting?
(yes/no): 
	[artifact:deploy] The authenticity of host 'chiadvsdap62' can't
be established.
	


Re: maven sftp issues.

Posted by Wayne Fay <wa...@gmail.com>.
>        [artifact:deploy] The authenticity of host 'chiadvsdap62' can't
> be established.
>        [artifact:deploy] DSA key fingerprint is
> 6e:18:0c:a0:07:70:94:18:1e:af:10:e5:5a:35:94:96.
>        [artifact:deploy] Are you sure you want to continue connecting?
> (yes/no):

As this user, run sftp manually from the command line (or ssh) and
accept the key (the yes/no prompt). Then you shouldn't get this prompt
and the deploy should (hopefully) succeed.

Wayne

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org