0

I am using Grails 1.2.1 and Groovy-Grails Tool Suite 3.1.0. Before that I was used 2.5.2.RELEASE of STS. But after upgrading to Groovy-Grails Tool Suite 3.1.0, when I am trying to run the app I am getting the following error:

Welcome to Grails 1.2.1 - http://grails.org/
Licensed under Apache Standard License 2.0
Grails home is set to: C:\Program Files\Grails\grails-1.2.1\

Base Directory: D:\softwares\My_workspace\BluBilling
Resolving dependencies...
Dependencies resolved in 847ms.
Running script C:\Program Files\Grails\grails-1.2.1\scripts\RunApp.groovy
Environment set to development
Plugin [functional-test-1.2.7] not installed, resolving..
Reading remote plugin list ...Plugin 'functional-test' was not found in repository. If it is not stored in a configured repository you will need to install it manually. Type 'grails list-plugins' to find out what plugins are available.

And when I am open Plugin manager I am getting the empty list but in console window getting one plugin and also getting following error:

Welcome to Grails 1.2.1 - http://grails.org/
Licensed under Apache Standard License 2.0
Grails home is set to: C:\Program Files\Grails\grails-1.2.1\

Base Directory: D:\softwares\My_workspace\BluBilling
Resolving dependencies...
Dependencies resolved in 847ms.
Running script C:\Program Files\Grails\grails-1.2.1\scripts\ListPlugins_.groovy
Environment set to development
Reading remote plugin list ...

Plug-ins available in the core repository are listed below:
-------------------------------------------------------------

dummy               <0.1 (?)>          --  Plugin summary/headline
hibernate           <1.3.8>          --  Hibernate for Grails
tomcat              <1.3.8>          --  Apache Tomcat plugin for Grails
webflow             <1.3.8.BUILD-SNAPSHOT> --  Spring Web Flow Plugin
Reading remote plugin list ...

Plug-ins available in the default repository are listed below:
-------------------------------------------------------------

No plugins found in repository: https://svn.codehaus.org/grails-plugins

Plug-ins you currently have installed are listed below:
-------------------------------------------------------------

google-chart        0.5.0            --  This plugin adds Google Chart API features to Grails applications.

To find more info about plugin type 'grails plugin-info [NAME]'

To install type 'grails install-plugin [NAME] [VERSION]'

For further info visit http://grails.org/Plugins

Error executing script ListPlugins: grails.util.BuildSettings.getPluginClassesDir()Ljava/io/File;
java.lang.NoSuchMethodError: grails.util.BuildSettings.getPluginClassesDir()Ljava/io/File;
    at org.grails.ide.eclipse.runtime.GrailsBuildSettingsDependencyExtractor.getPluginClassesDir(GrailsBuildSettingsDependencyExtractor.java:63)
    at org.grails.ide.eclipse.runtime.GrailsBuildSettingsDependencyExtractor.getDependencyData(GrailsBuildSettingsDependencyExtractor.java:217)
    at org.grails.ide.eclipse.runtime.GrailsBuildSettingsDependencyExtractor.writeDependencyFile(GrailsBuildSettingsDependencyExtractor.java:201)
    at org.grails.ide.eclipse.runtime.DependencyExtractingBuildListener.receiveGrailsBuildEvent(DependencyExtractingBuildListener.java:79)
    at gant.Gant$_dispatch_closure4.doCall(Gant.groovy:324)
    at gant.Gant$_dispatch_closure6.doCall(Gant.groovy:334)
    at gant.Gant$_dispatch_closure6.doCall(Gant.groovy)
    at gant.Gant.withBuildListeners(Gant.groovy:344)
    at gant.Gant.this$2$withBuildListeners(Gant.groovy)
    at gant.Gant$this$2$withBuildListeners.callCurrent(Unknown Source)
    at gant.Gant.dispatch(Gant.groovy:334)
    at gant.Gant.this$2$dispatch(Gant.groovy)
    at gant.Gant.invokeMethod(Gant.groovy)
    at gant.Gant.processTargets(Gant.groovy:495)
    at gant.Gant.processTargets(Gant.groovy:480)
Error executing script ListPlugins: grails.util.BuildSettings.getPluginClassesDir()Ljava/io/File;

I tried to install functional-test plugin using the command:

grails install-plugin functional-test

But I am getting the following error:

Welcome to Grails 1.2.1 - http://grails.org/
Licensed under Apache Standard License 2.0
Grails home is set to: C:\Program Files\Grails\grails-1.2.1\

Base Directory: D:\softwares\My_workspace\BluBilling
Resolving dependencies...
Dependencies resolved in 822ms.
Running script C:\Program Files\Grails\grails-1.2.1\scripts\InstallPlugin.groovy
Environment set to development
Reading remote plugin list ...Plugin 'functional-test' was not found in repository. If it is not stored in a configured repository you will need to install it manually. Type 'grails list-plugins' to find out what plugins are available.

Anyone help me please...

Thanks in advance.

Nimmy.

4

1 回答 1

0

在您的控制台中,您可以看到:

欲了解更多信息,请访问http://grails.org/Plugins

所以,你应该去这个页面并尝试找到插件功能测试。在这个插件功能测试的页面上你可以看到

依赖:

编译“:功能测试:2.0.RC1”

自定义存储库:

mavenRepo "http://repository.codehaus.org/"

mavenRepo "http://repository.jboss.org/maven2/"

因此,尝试将此存储库添加到 BuildConfig.groovy。现在是当前版本的 grails - 2.2 :)

如果不起作用,请尝试使用最新版本的插件:functional-test:2.0.RC1

于 2012-12-27T10:23:14.573 回答