grails run-app error插件[functional-test-1.2.7]未安装

时间:2012-12-27 07:51:18

标签: grails run-app

我使用的是Grails 1.2.1和Groovy-Grails Tool Suite 3.1.0。在此之前,我使用了2.5.2.RELEASE的STS。但升级到Groovy-Grails Tool Suite 3.1.0后,当我尝试运行应用程序时,我收到以下错误:

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.

当我打开插件管理器时,我得到的是空列表但是在控制台窗口中获取一个插件并且还出现以下错误:

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;

我尝试使用以下命令安装functional-test插件:

grails install-plugin functional-test

但是我收到以下错误:

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.

任何人都可以帮助我......

提前致谢。

Nimmy。

1 个答案:

答案 0 :(得分:0)

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

  

有关详细信息,请访问http://grails.org/Plugins

因此,您应该转到此页面并尝试查找插件功能测试。在此插件functional test的页面上,您可以看到

  

依赖性:

     

编译“:functional-test:2.0.RC1”

     

自定义存储库:

     

mavenRepo“http://repository.codehaus.org/”

     

mavenRepo“http://repository.jboss.org/maven2/”

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

如果它不起作用,请尝试使用最新版本的插件:功能测试:2.0.RC1