This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-04-26
Channels
- # aleph (2)
- # beginners (119)
- # boot (18)
- # cider (19)
- # cljs-dev (46)
- # cljsjs (1)
- # cljsrn (30)
- # clojure (101)
- # clojure-dusseldorf (12)
- # clojure-finland (1)
- # clojure-greece (7)
- # clojure-india (2)
- # clojure-italy (6)
- # clojure-poland (4)
- # clojure-russia (120)
- # clojure-sg (3)
- # clojure-spec (147)
- # clojure-uk (75)
- # clojurescript (86)
- # cursive (4)
- # datomic (50)
- # docker (1)
- # emacs (4)
- # juxt (51)
- # leiningen (16)
- # liberator (1)
- # luminus (1)
- # lumo (116)
- # mount (2)
- # off-topic (2)
- # onyx (38)
- # pedestal (4)
- # protorepl (2)
- # re-frame (44)
- # reagent (8)
- # ring-swagger (16)
- # schema (5)
- # specter (16)
- # test-check (226)
Is it possible to configure private maven repos so that lein new ...
will search them when resolving template names? I’ve tried :repositories
and :plugin-repositories
in my :user
profile but it isn’t working for me and the output only mentions searching maven central and clojars. There’s a chance I’ve misconfigured artifactory so I’m wondering if anyone has had success with this.
Can you share your (redacted) config?
Actually, I think I've run into this in the past, and we had to publish our lein templates to Clojars
Following the code path through leiningen.new it all seems like it should work
I suspect the problem is in leiningen.new/fake-project
It looks like it would use your :plugin-repositories
from :user
{:user
{:dependencies [[org.clojure/tools.namespace "0.2.10"]
[pjstadig/humane-test-output "0.7.0"]]
:injections [(require 'pjstadig.humane-test-output)
(pjstadig.humane-test-output/activate!)]
:plugins [[cider/cider-nrepl "0.9.0-SNAPSHOT"]]
:plugin-repositories
[["snapshots" {:url ""}]
["releases" {:url ""
:sign-releases false}]]}}
which seems to be fixed
Yeah, I saw that also. This 2015 thread implies its :plugin-repositories
as well, but I couldn’t get it working: https://groups.google.com/forum/#!topic/clojure/FXohCZjriN0
Here’s the output with repos configured in :plugin-repositories
:
bash-3.2$ lein new my-template foo
lein new my-template foo
(:repositories detected in user-level profiles! [:user]
See
Failed to resolve version for my-template:lein-template:jar:RELEASE: Could not find metadata my-template:lein-template/maven-metadata.xml in local (/Users/jed/.m2/repository)
This could be due to a typo in :dependencies or network issues.
If you are behind a proxy, try setting the 'http_proxy' environment variable.
Could not find template my-template on the classpath.
clojure/lein newbie here: is there an easy way to find the latest version of an dependency via lein search
other than manually paging through all search results?
@martyglaubitz not exactly the answer to your original question, but there is https://github.com/xsc/lein-ancient plugin which will report the outdated dependencies. I also often use cljr-add-project-dependency in Spacemacs which will automatically list the most recent versions at the top
@jumar yeah usually i rely on my IDE (i use IntelliJ + Cursive) to show me whats available, but sometimes i don't have more than leiningen itself to search..