sdkman / sdkman-cli

The SDKMAN! Command Line Interface
https://sdkman.io
Apache License 2.0
6.15k stars 631 forks source link

use local files instead of downloading from the network #1325

Closed cary929 closed 2 days ago

cary929 commented 4 days ago

In some regions (like China), using curl to download files can be very slow and often interrupted. To solve this issue, you can pre-download the files locally and then use the following method. For example, to install the ant library, the default command is:

sdk install ant 1.9.7 [folder]

Set the parameter [folder] to the string "local" to enable local file installation. The actual command becomes:

sdk install ant 1.9.7 local

Fixes #XXX

helpermethod commented 2 days ago

Hi @cary929,

this is already possible

https://sdkman.io/usage#install-local-versions