bazel run -- //:target -Dflag=value
bazel run --jvmopt="-Dflag=value" -- //:target
bazel run -- //:target --jvm_flag="-Dflag=value"
But, none of these seem to work. Is there some way to pass jvm flags to the java_binary through bazel run?
bazel run //<target> --jvmopt="-Xdebug" --jvmopt="-Xmx:512m" --jvmopt="-Xms:512m"
etc
Came across this while searching for a similar question. Here's the answer:bazel run //<target> --jvmopt="-Xdebug" --jvmopt="-Xmx:512m" --jvmopt="-Xms:512m"