Build clojure with maven on Windows 10
02 July 2020
There are several ways to install clojure
on Linux and macOS, but
no Windows option. Anyway, clojure
official site provide one
option to compile it with maven
.
- download
maven
from http://maven.apache.org/download.cgi - unpack
maven
to some folder, such asC:\apache-maven-3.6.3\bin
add to
maven
toPATH
, by add one line in~/.bash_profile
:export PATH=$PATH:/cygdrive/c/apache-maven-3.6.3/bin
clone
clojure
src and compile with maven:git clone https://github.com/clojure/clojure.git cd clojure mvn -Plocal -Dmaven.test.skip=true package
Then start the REPL with the local jar:
java -jar clojure.jar
Now, you are a happy clojurian!