SBT doesn't use ssh-based resolver to resolve dependency -
i have following definition in build.sbt:
librarydependencies += "com.bubblefoundry" %% "something" % "0.1-snapshot" resolvers += { val privatekeyfile = new java.io.file(sys.env("home") + "/.ssh/id_rsa") resolver.ssh("bubble foundry", "bubblefoundry.com", "/usr/local/repository/") ("peter", privatekeyfile) withpermissions("0644") } when sbt tries resolve dependency, fails:
[info] resolving com.bubblefoundry#something_2.10;0.1-snapshot ... [warn] module not found: com.bubblefoundry#something_2.10;0.1-snapshot [warn] ==== local: tried [warn] /users/peter/.ivy2/local/com.bubblefoundry/something_2.10/0.1-snapshot/ivys/ivy.xml [warn] ==== bubble foundry: tried [warn] ==== public: tried [warn] http://repo1.maven.org/maven2/com.bubblefoundry/something_2.10/0.1-snapshot/something_2.10-0.1-snapshot.pom [warn] :::::::::::::::::::::::::::::::::::::::::::::: [warn] :: unresolved dependencies :: [warn] :::::::::::::::::::::::::::::::::::::::::::::: [warn] :: com.bubblefoundry#something_2.10;0.1-snapshot: not found [warn] :::::::::::::::::::::::::::::::::::::::::::::: it appears didn't connect server dependency. why that? doing wrong?
the dependency has been published (using same resolver definition) /usr/local/repository/com/bubblefoundry/...
i found solution: switch ssh sftp:
resolvers += { val privatekeyfile = new java.io.file(sys.env("home") + "/.ssh/id_rsa") resolver.sftp("bubble foundry", "bubblefoundry.com", "/usr/local/repository/") ("peter", privatekeyfile) }
Comments
Post a Comment