Skip to content

JDKs installed by asdf are not discovered. #145

Closed

Description

@mbutov

Affected version

3.2.0

Bug description

The plugin does not find JDKs installed by asdf.

The problem, I believe, is in the line:

        installedDirs.add(userHome.resolve(".asdf").resolve("installs"));

which should be replaced with:

        installedDirs.add(userHome.resolve(".asdf").resolve("installs").resolve("java"));

Environment:

➜  ~ sw_vers
ProductName:		macOS
ProductVersion:		26.3
BuildVersion:		25D125

➜  ~ mvn -version
Apache Maven 3.9.9 (8e8579a9e76f7d015ee5ec7bfcdc97d260186937)
Maven home: /Users/maxim.butov/.asdf/installs/maven/3.9.9
Java version: 21.0.8, vendor: Eclipse Adoptium, runtime: /Users/maxim.butov/.asdf/installs/java/temurin-21.0.8+9.0.LTS
Default locale: en_US, platform encoding: UTF-8
OS name: "mac os x", version: "26.3", arch: "aarch64", family: "mac"

➜  ~ asdf --version
asdf version 0.18.0 (revision unknown)

Activity

  1. added this to the 3.3.0 milestone on Mar 22, 2026
  2. added a commit that references this issue on Mar 22, 2026
    572a8c2
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

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions