From f0c13af5dfb9234688b8ba6da2cafce5a31ebc81 Mon Sep 17 00:00:00 2001 From: Phil Hagelberg Date: Fri, 29 Dec 2017 13:51:41 -0800 Subject: [PATCH] Document that deploy task accepts a URL as a repo name. --- src/leiningen/deploy.clj | 3 +++ src/leiningen/install.clj | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/leiningen/deploy.clj b/src/leiningen/deploy.clj index 323ee4a1..8a6cafff 100644 --- a/src/leiningen/deploy.clj +++ b/src/leiningen/deploy.clj @@ -190,6 +190,9 @@ You can also deploy arbitrary artifacts from disk: $ lein deploy myrepo com.blueant/fancypants 1.0.1 fancypants.jar pom.xml +The repository can be defined in defproject or a profile, or it can be a URL. +Use file://$HOME/.m2/repository to install in the local repo. + While this works with any arbitrary files on disk, downstream projects will not be able to depend on jars that are deployed without a pom." ([project] diff --git a/src/leiningen/install.clj b/src/leiningen/install.clj index 8f092d45..38b920a5 100644 --- a/src/leiningen/install.clj +++ b/src/leiningen/install.clj @@ -10,7 +10,9 @@ (java.util UUID))) (defn install - "Install jar and pom to the local repository; typically ~/.m2." + "Install jar and pom to the local repository; typically ~/.m2. + +In order to install arbitrary files into a repository see the deploy task." [project] (when (not (or (:install-releases? project true) (pom/snapshot? project)))