Skip to content

Instantly share code, notes, and snippets.

@ithayer
Last active December 15, 2015 08:08
Show Gist options
  • Save ithayer/5228213 to your computer and use it in GitHub Desktop.
Save ithayer/5228213 to your computer and use it in GitHub Desktop.
;; In project.clj
:plugins [[s3-wagon-private "1.1.2"]]
:repositories {"private" {:url "s3p://mybucket/releases/"
:passphrase :env
:username :env}}
;; Gotcha 1: Using :creds :env didn't seem to work for me.
;; Gotcha 2: Using a location of just s3p://mybucket didn't
;; seem to work, the releases/ directory is needed.
;; Before running lein deps
export LEIN_USERNAME=...
export LEIN_PASSPHRASE=...
;; Install a JAR
mvn deploy:deploy-file
-Dfile=keyczar-0.71f-readyforzero-build.jar
-DgroupId=org.keyczar
-Dversion=0.71f-readyforzero-build
-DartifactId=keyczar
-Dpackaging=jar
-Dmaven.repo.local=/tmp/maven-repo
-DcreateChecksum
-Durl=file:/tmp/maven-repo
;; Gotcha 3: Need to use deploy-file instead of install-file.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment