在grails 2.2.3上安装本地dojo插件

时间:2013-08-17 14:44:16

标签: grails plugins dojo

我正在尝试从本地目录安装dojo插件插件,但是我收到了一个grails错误:

  找不到

插件。

问题是我尝试使用dojo 1.9 librery做一些新的事情。我使用的是Ubuntu 10.04,64位架构和Spring IDE GGSTS。我试图在互联网上的grails上安装默认的dojo插件(1.7),将插件下载到本地目录。事情就是修改相关的插件,解压缩它,更改web-app/js/dojo目录下的dojo库,以便更新一个dojo 1.9。文件。然后卸载dojo插件,删除.grails/ivy-cache/org.grails.pluggin/.grails/GRAILS_VERSION/project/_PROJECT上的dojo缓存。在这之后,只需通过install-plugin命令重新安装修改后的插件。问题是grails返回错误:

plugin () not found

Loading Grails 2.2.3
| Configuring classpath.
| Environment set to development.....
| Warning The install-plugin command is deprecated and may be removed from a future version of Grails.  Plugin dependencies should be expressed in grails-app/conf/BuildConfig.groovy.  See http://grails.org/doc/2.2.x/guide/conf.html#pluginDependencies.
| Resolving plugin /home/israel/dojo-1.7.2.0.zip. Please wait...
| Error resolving plugin [name:/home/israel/dojo-1.7.2.0.zip, group:org.grails.plugins, version:latest.integration]. Plugin not found.
| Error Plugin not found for name [/home/israel/dojo-1.7.2.0.zip] and version [not specified]
| Error Error installing plugin: null (Use --stacktrace to see the full trace)
| Error org.codehaus.groovy.grails.cli.ScriptExitException
| Error     at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
| Error     at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
| Error     at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
| Error     at java.lang.reflect.Constructor.newInstance(Constructor.java:532)
| Error     at org.codehaus.groovy.reflection.CachedConstructor.invoke(CachedConstructor.java:77)
| Error     at org.codehaus.groovy.runtime.callsite.ConstructorSite$ConstructorSiteNoUnwrapNoCoerce.callConstructor(ConstructorSite.java:102)
| Error     at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallConstructor(CallSiteArray.java:57)
| Error     at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:182)
| Error     at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:194)
| Error     at gant.Gant$_dispatch_closure5.doCall(Gant.groovy:391)
| Error     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| Error     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
| Error     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
| Error     at java.lang.reflect.Method.invoke(Method.java:616)
| Error     at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite$PogoCachedMethodSiteNoUnwrapNoCoerce.invoke(PogoMetaMethodSite.java:272)
| Error     at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite.call(PogoMetaMethodSite.java:64)
| Error     at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45)
| Error     at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
| Error     at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)
| Error     at gant.Gant$_dispatch_closure7.doCall(Gant.groovy:415)
| Error     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| Error     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
...

1 个答案:

答案 0 :(得分:2)

使用您正在使用的当前Grails版本2.2.3,install-plugin已被弃用。您需要在buildConfig中定义它。如果您在maven存储库中有插件,只需在插件dsl中定义它,否则您需要使用grails.plugin.location here内联定义它。看看creating and installing plugins