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.
(cljfx is the non-lein project that i'm trying to use as a checkout
@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`)
cool, i was unaware of jar tf, i'll give that a shot
also a decent editor can show you what's in a jar and open documents stashed inside it
whoa, neat
having a visual really helps; i seem to have fixed the problem i was facing
my thanks to both of you!