flofreud / posh-gvm

GVM for Powershell
Apache License 2.0
210 stars 60 forks source link

Import-Module posh-gvm #30

Open mzbullock opened 6 years ago

mzbullock commented 6 years ago

I have followed all the steps to set up the posh-gvm. When I get to the Import-Module posh-gvm I get an offline error. I have not found a fix for this and I need to learn groovy so I can create and troubleshoot ScriptRunner scripts. Is there a fix for this or a workaround? My JAVA_HOME is set so that is not the issue. I am stuck.

srimajji commented 6 years ago

@mzbullock I had the same offline issues and it's because this repo uses deprecated sdkman apis.

A quick fix would be to go to /WindowsPowerShell/Modules/posh-gvm/posh-gvm.psm1 line 22,23

Replace it with

$Script:PGVM_SERVICE = 'https://api.sdkman.io'
$Script:PGVM_BROADCAST_SERVICE = 'https://api.sdkman.io/2'

restart powershell and try again.

WilliamRyan commented 6 years ago

@srimajji Hi, I had tried ,but it did not work. Do you have any other way to fix it? thanks