Skip to content
This repository has been archived by the owner on Dec 25, 2019. It is now read-only.

Import-Module posh-gvm #30

Open
mzbullock opened this issue May 1, 2018 · 2 comments
Open

Import-Module posh-gvm #30

mzbullock opened this issue May 1, 2018 · 2 comments

Comments

@mzbullock
Copy link

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
Copy link
Contributor

srimajji commented May 2, 2018

@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
Copy link

WilliamRyan commented May 8, 2018

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants