Skip to content

JDKs installed by asdf are not discovered. #145

@mbutov

Description

@mbutov

Affected version

3.2.0

Bug description

The plugin does not find JDKs installed by asdf.

The problem, I believe, is here:

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

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions