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? According to the maven website, I change my maven deployment to remote binrepo from <ftp://chiadvsdap73/datlib/advantage/sig/repository/snapshot> "ftp://chiadvsdap73/datlib/advantage/sig/repository/snapshot <ftp://chiadvsdap73/datlib/advantage/sig/repository/snapshot> " to "sftp://nbs5u2j:2xadv103...@chiadvsdap62/datlib/advantage/sig/repository /snapshot". The issues is that I kept on getting passwd prompt which casuing the build doing infinite loopings on message listed below. I wonder if anyone has seen this and if there is a way to get around this issue. 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:2xadv103...@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:2xadv103...@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. Ray A.C.E.S. System Engineering Global Markets Technology Bank of America 233 S Wacker Dr Ste 2800 Chicago, IL 60606 (O) 312-234-3167 (C) 847-323-1964