mbutov opened a new issue, #145:
URL: https://github.com/apache/maven-toolchains-plugin/issues/145

   ### Affected version
   
   3.2.0
   
   ### Bug description
   
   The plugin does not find JDKs installed by asdf.
   
   The problem, I believe, is 
[here](https://github.com/apache/maven-toolchains-plugin/blob/1f2ca233a1048e32b9efad8c32f9e613ee013ba1/src/main/java/org/apache/maven/plugins/toolchain/jdk/ToolchainDiscoverer.java#L429):
 
   
   ```java
           installedDirs.add(userHome.resolve(".asdf").resolve("installs"));
   ```
   
   should be replaced with:
   
   ```java
           
installedDirs.add(userHome.resolve(".asdf").resolve("installs").resolve("java"));
   ```
   
   Environment:
   ```text
   ➜  ~ 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)
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to