Skip to content

Set environment variables for "Refresh Leiningen Projects" #3068

Open

Description

@ernesto-castelan

When using "Refresh Leiningen Projects" I would like to pass LEIN_JVM_OPTS="-Daether.dependencyCollector.impl=bf" environment variable. This solves a slowness problem in my project when fetching dependencies.

Image

I have setup the environment variable in ~/.zshrc (which solves the problem when running lein from the terminal) but it does not seem to be recognized by the intelliJ plugin

➜ git:(master) echo $LEIN_JVM_OPTS 
-Daether.dependencyCollector.impl=bf
➜ git:(master) lein run-dev
:repositories detected in user-level profiles! [:user] 
See https://wiki.leiningen.org/Repeatability
... runs normally

Activity

  1. ernesto-castelan commented on Oct 24, 2025

    @ernesto-castelan
    Author

    Expected behaviour
    The plugin should respect the exported LEIN_JVM_OPTS when importing the project/resolving deps

    Workaround
    Use IntelliJ's "Edit Custom VM Options" and add -Daether.dependencyCollector.impl=bf in a new line, then restart intelliJ.

    Image
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions