Fork me on GitHub
#leiningen
<
2020-07-11
>
Crispin09:07:50

Is there an easy way to add a custom downloaded jar to the classpath leiningen is using?

jumar11:07:58

@retrogradeorbit install it in your maven repo. You want to do it anyway to make the build more reproducible

Crispin13:07:48

how do I install just a lone jar?

Crispin13:07:13

normally I'd have a maven project file and could go mvn install

Crispin13:07:33

but there is no project here, just a jar

Alex Miller (Clojure team)14:07:49

you can still mvn install just a jar

Alex Miller (Clojure team)14:07:05

you just have to tell it what coords to use

Alex Miller (Clojure team)14:07:05

mvn install:install-file -Dfile=<path-to-file> -DgroupId=<group-id> -DartifactId=<artifact-id> -Dversion=<version> -Dpackaging=<packaging>

👍 3