Unable to install Grails plugin

I am trying to install the ws-client plugin for grails. However, when I run grails install-plugin ws-client, it gets

Resolving plugin ws-client. Please wait... 

and then it just does not contain any additional information. I tried to remove the plugin in the application.properties file (it appears there), but this does not help.

I know that the plugin was not installed successfully either because I get an error when trying to import a ws client.

 Unable to resolve class groovyx.net.ws.WSClient 

Does anyone know why it is not installed correctly?

Thanks!

Update: When I run grails list-plugins -installed ws-client, they appear, maybe it installs? But if so, why should the import statement cause a permission error?

Update: This is definitely a problem with the installation. I don’t know what the problem is, but I managed to get around this. Submitting a response using a process.

Well, I can't send an answer to myself, because I need 100 Rep to answer myself in less than 8 hours, and I, of course, have only 99 ... :)

The answer turned out to be a right click of the “plugins” in the project in the Project Explorer window in STS and manually placing the ws-client plugin and marking for installation. I will send this as a real answer in 5 hours.

+4
source share
2 answers

So for some reason using

 grails install-plugin ws-client 
Command

it works incorrectly. I ran it both from the command line and from the integrated STS terminal. Both gave me the problem that it does not complete the installation, but also does not give an error.

In any case, I finally managed to install the plugin by right-clicking on the “plugins” in my project in the Project Project Explorer window. From there, you can open the Grails Connection Manager and search for the ws client. I selected it for installation, and it completed the installation without a hitch.

I still don’t know why I couldn’t do it from the usual command line, but this method worked and was installed, so I hope this helps someone else in the future!

+2
source

Another way that worked for me (I use STS) is to run grails install-plugin ws-client by accessing the grails command line using Ctrl + Alt + Shift + G (Cmd + Alt + Shift + G on Mac)

It also helps to simply "update" the project after installing the plugin and rebuild it (if you are disabled in automatic mode)

0
source

All Articles