Skip to content

Instantly share code, notes, and snippets.

@evilsneer
Last active July 16, 2019 14:43
Show Gist options
  • Save evilsneer/76a4f6c01df328f1b9348eb9b52cb822 to your computer and use it in GitHub Desktop.
Save evilsneer/76a4f6c01df328f1b9348eb9b52cb822 to your computer and use it in GitHub Desktop.

edit deploy repositories in defproject

  :plugins [[org.apache.maven.wagon/wagon-ssh-external "2.6"]]
  :deploy-repositories ^:replace [["releases" "scp://[email protected]/root/rel/"]
                                  ["snapshots" "scp://[email protected]/root/snap/"]]

and above defproject

(cemerick.pomegranate.aether/register-wagon-factory!
  "scp" #(let [c (resolve 'org.apache.maven.wagon.providers.ssh.external.ScpExternalWagon)]
           (clojure.lang.Reflector/invokeConstructor c (into-array []))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment