-
Notifications
You must be signed in to change notification settings - Fork 931
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SBT publishing via SSH key auth not working #738
Comments
I'm really keen on getting past this problem. Is this there a better place to ask this question? |
sbt 0.12.3 uses Ivy 2.3.0-rc1. I don't see anything in the Ivy issue tracker that makes it look like rc2 fixes any ssh problems in rc1. I don't know if it matters, but you resolve from a repository configured from a base path and using sftp, but publish to one without a base path and with ssh. |
sbt 0.13.2-RC1 uses Ivy 2.3.0. Do you wanna give it a try to see if this still happens? |
Closing this for now. Feel free to reopen if the problem persists with the latest sbt. |
Thanks Eugene, I tried this again recently and it seemed to be working okay. On Tue, Jun 24, 2014 at 11:06 AM, eugene yokota notifications@github.com
|
This originally began as a StackOverflow question, see: http://stackoverflow.com/questions/16136511/sbt-publishing-via-ssh-key-auth-not-working. However, at this point it seems like it is probably not a mis-configuration and seems like it's being caused by the version of ivy being used by SBT (currently ivy-2.2.0).
My question is: Why can't I publish from SBT to my server via SSH?
Context:
I am developing a scala library and I want to publish it to a remote repository with SBT v0.12.3 over SSH (using an SFTP resolver). The relevant portion of my project/Build.scala SBT settings file is configured as prescribed by https://github.com/harrah/xsbt/wiki/Resolvers:
When I run
sbt publish
, things go fine until the authorization, where it still attempts to prompt me for login/password. When I run it locally, it brings up the username/password prompt, and when I try to publish remotely while SSH'd in to a machine it fails with ajava.awt.HeadlessException
. The result appears to be that the desired private-key type of authentication is not being attempted.Here is a log of the remote session publish attempt:
It fails because there is no X11 display. This is unexpected behavior because the SBT project configuration is set to use private key authentication (see
resolvers
above).So far I can think of 2 possible causes for the problem, detailed below.
Possible cause #1: Misconfiguration of SBT
Is there a problem in my configuration above?
Possible cause #2: Hitting an Ivy bug from an old version
At time of writing, I am using the latest SBT, 0.12.3. Maybe the version of Ivy being used by SBT is old. The more I think about it, the less likely this seems, but I haven't been able to rule it out yet.
How can I find out what version of Ivy SBT is using?
and then..
IF it is old, is there a way to get SBT to use a newer version of ivy?
There is another relevant question, see http://stackoverflow.com/q/12486604/293064, which references[0] an Old Ivy bug which caused
java.awt.HeadlessExceptions
.[0] http://stackoverflow.com/q/12486604/293064
The text was updated successfully, but these errors were encountered: