Fork me on GitHub
#tools-deps
<
2023-06-05
>
nivekuil02:06:02

trying the new`add-libs` functionality, but because I have -Dcom.sun.management.jmxremote.port=17199 in JAVA_OPTS , when a new JVM is spawned it inherits that and tries to bind to that same port, so it throws an exception. Not sure how I can override this behavior, or if tools.deps should manage its own JAVA_OPTS

seancorfield02:06:53

If you have that env var set globally, you can't start more than one JVM in general... How/where are you setting that?

seancorfield02:06:19

It feels like something you should have under an alias, in :jvm-opts, so you can control when it's in effect. And then it won't interfere with other JVM instances.

Alex Miller (Clojure team)03:06:49

I agree with Sean that that would be better (you can also pass on the CLI with -J-Dcom.... ), but this is something that we should at least you handle through a combination of https://clojure.atlassian.net/jira/software/c/projects/CLJ/issues/CLJ-2777 and https://clojure.atlassian.net/jira/software/c/projects/CLJ/issues/CLJ-2770 which are both things still in the queue