This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-04-08
Channels
- # announcements (6)
- # babashka (78)
- # beginners (84)
- # bristol-clojurians (5)
- # calva (50)
- # chlorine-clover (45)
- # cider (14)
- # clj-kondo (18)
- # cljs-dev (2)
- # clojars (2)
- # clojure (387)
- # clojure-android (3)
- # clojure-europe (6)
- # clojure-gamedev (3)
- # clojure-germany (3)
- # clojure-nl (18)
- # clojure-spec (5)
- # clojure-uk (36)
- # clojurescript (8)
- # clojurex (1)
- # conjure (1)
- # css (1)
- # cursive (32)
- # data-science (1)
- # datomic (11)
- # docker (61)
- # duct (17)
- # emacs (7)
- # figwheel-main (3)
- # fulcro (19)
- # jobs-discuss (3)
- # joker (1)
- # leiningen (23)
- # malli (11)
- # mount (6)
- # off-topic (30)
- # pathom (14)
- # pedestal (2)
- # phzr (1)
- # re-frame (11)
- # reagent (3)
- # reitit (5)
- # ring-swagger (3)
- # rum (1)
- # shadow-cljs (113)
- # slack-help (9)
- # spacemacs (16)
- # specter (4)
- # sql (14)
- # vscode (2)
- # windows (3)
- # xtdb (12)
are most of you adding your lein plugins to your project dev profile rather than just to a top level :plugins
within my lein project, how would i use a non-lein project as a lein checkout? the docs (https://github.com/technomancy/leiningen/blob/stable/doc/TUTORIAL.md#checkout-dependencies) indicate that i would need to lein install
the checkout in order to add the necessary files to my local maven repo, but since the checkout in question isn't a lein project, what am i to do?
i'm trying to test changes to a dependency (which is not a lein project) in the context of a lein project; i'd like to avoid figuring out of the finer points of putting jars and pom.xml into my local maven repo
well, i was able to glean that https://github.com/slipset/deps-deploy does something like what lein install
does, although i haven't figured out a clj/deps alias that would be equivalent to lein install
. i'm in place now where i'm seeing this when i try to run my code:
Could not locate cljfx/api__init.class, cljfx/api.clj or cljfx/api.cljc on classpath.
@pclalv_clojurians lein install
knows how to install things if there's a pom.xml and a jar, with some extra args it can use just a jar
clj -Spom
will make a pom for deps.edn
if clj -Spom
, you can probably tweak it, and then run mvn install
ah, okay. @noisesmith perhaps you meant lein deploy
?
no, I meant lein install, it can do arbitrary artifacts
oh huh. i don't see that and i'm on lein 2.9.2. lein install
doesn't seem to accept any args or options (looking at the CLI help output), whereas lein deploy
does. i was just now able to use lein deploy
to put some jars into ~/.m2/repository
; i'm still getting the same classpath error, but maybe i need to keep plugging away at it
You can do that with mvn install
It takes a bunch of args (jar file, pom file, etc)
oh right, mvn install
. somehow i didn't notice those three letters in your earlier message
i can run mvn install
without error, and it definitely adds things to my local maven repo, but something's still not right - i'm still getting the classpath-related error, Could not locate cljfx/jdk/platform__init.class, cljfx/jdk/platform.clj or cljfx/jdk/platform.cljc on classpath.
the error is all but inscrutable - i'm way out of my element with these low-level java errors 😖
look what's in the jar
well, first, make sure the jar is on the classpath
second, make sure it has the thing you expect in it (`jar tf ....the.jar`)
also a decent editor can show you what's in a jar and open documents stashed inside it