2012-12-27 48 views
0

我正在使用Grails 1.2.1和Groovy-Grails Tool Suite 3.1.0。在此之前,我使用了STS的2.5.2.RELEASE。但升級到Groovy的Grails的工具套件3.1.0之後,當我試圖運行我收到以下錯誤應用:grails run-app error插件[functional-test-1.2.7]未安裝

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; 

我嘗試使用命令來安裝功能測試插件:

grails install-plugin functional-test 

但我得到了以下電子RROR:

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。

回答

0

在控制檯中可以看到:

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

所以,你應該去這個頁面,並試圖找到插件功能測試。在此插件functional test的頁面,您可以看到

Dependency :

compile ":functional-test:2.0.RC1"

Custom repositories :

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

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

所以,儘量此庫添加到BuildConfig.groovy。 現在當前的Grails的版本 - 2.2 :)

如果不工作,嘗試使用插件的最新版本:功能測試:2.0.RC1