I can’t see why Gradle would be looking for a .pom file in an ivy repository. Can you please post the actual error message you’re seeing? Even better if you can post the debug log via GitHub Gist.
Sorry you are right. It does not querry the ivy repository for the pom file. I missread the debug log. It querried mavenCentral for the pom file.
The sftp authentication is canceled
Caused by: com.jcraft.jsch.JSchException: Auth cancel
at com.jcraft.jsch.Session.connect(Session.java:511)
at com.jcraft.jsch.Session.connect(Session.java:183)
at org.gradle.internal.resource.transport.sftp.SftpClientFactory$SftpClientCreator.createNewClient(SftpClientFactory.java:63)
I actually have the correct credentials there. I did log in with FileZilla using the same username password combination. I think it is something with “known_hosts”. But JSch is very hard to read and does not log any useful info.
I looked at the isue a bit further. The root cause is that our ssh server allows “publickey,keyboard-interactive” authentication while gradle’s JSch is configured to allow “gssapi-with-mic,publickey,keyboard-interactive,password”, but the implementation only works with “pasword”. “Auth Cancel” is reported by the “keyboard-interactive” method. I submitted a patch via github to limit the possible authentication methods to “password”, because it is the only one that works. I created a pull request https://github.com/gradle/gradle/pull/300