[ 
https://issues.apache.org/jira/browse/MTOOLCHAINS-49?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17822501#comment-17822501
 ] 

ASF GitHub Bot commented on MTOOLCHAINS-49:
-------------------------------------------

mthmulders commented on PR #14:
URL: 
https://github.com/apache/maven-toolchains-plugin/pull/14#issuecomment-1972961108

   > @mthmulders Do you know which paths they are installed to ?
   
   ```
   [INFO] Found 1 possible jdks: [C:\Users\<windows 
username>\scoop\apps\openjdk21\21.0.2-13]
   [INFO] Discovered 1 JDK toolchains:
   [INFO]   - C:\Users\<windows username>\scoop\apps\openjdk21\21.0.2-13
   [INFO]     provides:
   [INFO]       version: 21.0.2
   [INFO]       runtime.name: OpenJDK Runtime Environment
   [INFO]       runtime.version: 21.0.2+13-58
   [INFO]       vendor: Oracle Corporation
   [INFO]       current: true
   [INFO]       lts: true
   [INFO]       env: JAVA_HOME
   ```
   
   But what I have on disk (reported on Git Bash, hence /c/, but you get the 
idea):
    
   ```
   $ pwd
   /c/Users/<windows username>/scoop/apps
   $ ls -l openjdk*/
   openjdk17/:
   total 4
   drwxr-xr-x 1 <windows username> 4096  0 Oct 27 08:27 17.0.2-8/
   lrwxrwxrwx 1 <windows username> 4096 46 Oct 27 08:27 current -> 
/c/Users/<windows username>/scoop/apps/openjdk17/17.0.2-8/
    
   openjdk21/:
   total 8
   drwxr-xr-x 1 <windows username> 4096  0 Oct 27 08:29 21.0.1-12/
   drwxr-xr-x 1 <windows username> 4096  0 Feb 15 09:05 21.0.2-13/
   lrwxrwxrwx 1 <windows username> 4096 47 Feb 15 09:05 current -> 
/c/Users/<windows username>/scoop/apps/openjdk21/21.0.2-13/
   ```
   
   So, generally speaking, the path is `C:\Users\<windows 
username>\scoop\apps\openjdk<major version>\<full version>\`, and for 
convenience, there's a symlink `C:\Users\<windows 
username>\scoop\apps\openjdk<major version>\current\` that points to the latest 
installed version for that major release.
   
   They're all installed from https://github.com/ScoopInstaller/Java, by the 
way.




> Automatic discovery of JDK toolchains
> -------------------------------------
>
>                 Key: MTOOLCHAINS-49
>                 URL: https://issues.apache.org/jira/browse/MTOOLCHAINS-49
>             Project: Maven Toolchains Plugin
>          Issue Type: Improvement
>            Reporter: Guillaume Nodet
>            Assignee: Guillaume Nodet
>            Priority: Major
>




--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to