Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

While determening maven repository path use maven-related path first ins... #2

Closed
wants to merge 1 commit into from

3 participants

@signalpillar

While determening maven repository path use maven-related path first instead of using predefined user.home

@memerelics

:+1: I like this feature, especially adding -r <repo-path> option. Is there any progress?

@kumarshantanu

It is not done yet. I will get to it shortly, but if somebody wants to give it a shot you are welcome.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jul 17, 2012
  1. @signalpillar

    While determening maven repository path use maven-related path first …

    signalpillar authored
    …instead of using predefined user.home
This page is out of date. Refresh to see the latest.
Showing with 6 additions and 2 deletions.
  1. +6 −2 src/leiningen/localrepo.clj
View
8 src/leiningen/localrepo.clj
@@ -13,8 +13,12 @@
(java.util.jar JarFile)))
-(def local-repo-path (str/join File/separator [(System/getProperty "user.home")
- ".m2" "repository"]))
+(def local-repo-path (str/join File/separator
+ ; check first for the maven-related repository path
+ ; if such path is not specified use user.home by default
+ [(or (System/getProperty "maven.repo")
+ (System/getProperty "user.home"))
+ ".m2" "repository"]))
(defn split-artifactid
Something went wrong with that request. Please try again.