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
mavenfrom http://maven.apache.org/download.cgi - unpack
mavento some folder, such asC:\apache-maven-3.6.3\bin add to
maventoPATH, by add one line in~/.bash_profile:export PATH=$PATH:/cygdrive/c/apache-maven-3.6.3/bin
clone
clojuresrc and compile with maven:git clone https://github.com/clojure/clojure.git cd clojure mvn -Plocal -Dmaven.test.skip=true packageThen start the REPL with the local jar:
java -jar clojure.jar
Now, you are a happy clojurian!