Skip to content

Commit 8a23268

Browse files
committed
Revert setting :jvm-opts in project.clj
Setting :jvm-opts in project.clj is dangerous because it assumes that said options will work for all users and platforms (which may have wildly differerent resources). Instead user/platform specific options can be set with the JVM_OPTS environment variable: https://github.com/technomancy/leiningen/blob/1a366b2c01054ffcc9a32b104818bc7d1f0024c0/doc/TUTORIAL.md#setting-jvm-options Signed-off-by: Tom Marble <[email protected]>
1 parent 39d09bc commit 8a23268

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

project.clj

+3-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,9 @@
4848
]
4949
[lein-environ "1.1.0"]]
5050

51-
:jvm-opts ["--add-modules" "java.xml.bind"]
51+
;; do NOT modify JVM options here.. instead set the JVM_OPTS env var
52+
;; FFI https://github.com/technomancy/leiningen/blob/1a366b2c01054ffcc9a32b104818bc7d1f0024c0/doc/TUTORIAL.md#setting-jvm-options
53+
;; :jvm-opts ["--add-modules" "java.xml.bind"]
5254

5355
:hooks [leiningen.cljsbuild]
5456

0 commit comments

Comments
 (0)