JVM options using Leiningen

21,686

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"] 
Share:
21,686
2daaa
Author by

2daaa

Updated on December 16, 2020

Comments

  • 2daaa
    2daaa over 3 years

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

  • 2daaa
    2daaa over 13 years
    I just tried it, and it looks like each option should be a separate entry in the vector so: :jvm-opts ["-Xmx1g" "-server"]
  • Erik Kaplun
    Erik Kaplun almost 5 years
    any idea why :jvm-opts ["--illegal-access=permit"] doesn't silence the respective warnings (on v11)?