JVM options using Leiningen

ClojureLeiningen

Clojure Problem Overview


How do I set JVM options like -server when I launch Clojure using Leiningen?

Clojure Solutions


Solution 1 - Clojure

Looking at the sample.project.clj file on the github repository, It looks like you can pass JVM arguments using the :jvm-opts keyword. For Example:

:jvm-opts ["-Xmx1g" "-server"] 

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
Question2daaaView Question on Stackoverflow
Solution 1 - ClojureJoel BoehlandView Answer on Stackoverflow