Cannot reference plugin classes grails 2.4.4

て烟熏妆下的殇ゞ 提交于 2019-12-11 11:00:04

问题


I have added the following entry to BuildConfig.groovy:

compile ":rest-client-builder:2.1.1"

The plugin supposedly installed correctly and the project compiled.

I am trying to import the RestBuilder class in a controller but the class name cannot be resolved?

import grails.plugins.rest.client.RestBuilder

Groovy:unable to resolve class grails.plugins.rest.client.RestBuilder

I have no spent an hour and a half trying to figure out why this is not working. I am not sure what else to do or what information to provide as to get this working. Can anyone well versed in groovy explain how this could be or offer some advice??

Thank you


回答1:


I used grails clean-all and grails compile from grails console(Windows command prompt).

Using the same in intellij(v15.0) run target did not work for me.



来源:https://stackoverflow.com/questions/32173091/cannot-reference-plugin-classes-grails-2-4-4

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!