当我运行

git push heroku master

命令,出现以下错误(如下)。每个thread,我卸载了heroku插件,安装了云支持插件,然后重新安装了heroku插件。那并没有改变错误。我在插件上为此输入了JIRA,但要在此处发布,以便轻松参考grails员工能够提供的解决方案,或者需要就问题/解决方案进行对话的情况。

谢谢

错误是:

[mkdir]创建的目录:/app/.grails/1.3.7/projects/build_36v61myh1movb/plugins/tomcat-1.3.7
[解压缩]展开:/app/tmp/repo.git/.cache/cache/org.grails.plugins/tomcat/zips/tomcat-1.3.7.zip到

/app/.grails/1.3.7/projects/build_36v61myh1movb/plugins/tomcat-1.3.7
将插件tomcat-1.3.7安装到位置/app/.grails/1.3.7/projects/build_36v61myh1movb/plugins/tomcat-

1.3.7。 ...
正在执行tomcat-1.3.7插件安装后脚本...
已安装插件tomcat-1.3.7
插件提供以下新脚本:
------------------------------------------
Grails Tomcat
[mkdir]创建的目录:/app/.grails/1.3.7/projects/build_36v61myh1movb/plugin-classes
[groovyc]将106个源文件编译到/app/.grails/1.3.7/projects/build_36v61myh1movb/plugin-classes
[groovyc] org.codehaus.groovy.control.MultipleCompilationErrorsException:启动失败:
[groovyc] /app/.grails/1.3.7/projects/build_36v61myh1movb/plugins/heroku-1.0/grails-

应用程序/taglib/grails/plugin/heroku/HerokuTagLib.groovy:17:无法解析类grails.plugin.cloudsupport.AbstractCloudTagLib
[groovyc] @第17行,第1列。
[groovyc]导入grails.plugin.cloudsupport.AbstractCloudTagLib
[groovyc] ^
[groovyc]
[groovyc] /app/.grails/1.3.7/projects/build_36v61myh1movb/plugins/heroku-1.0/grails-

app / taglib / grails / plugin / heroku / HerokuTagLib.groovy:22:无法解析类grails.plugin.cloudsupport.Abstr
actCloudTagLib
[groovyc] @第22行,第1栏。
[groovyc]类HerokuTagLib扩展了AbstractCloudTagLib {
[groovyc] ^
[groovyc]
[groovyc] /app/.grails/1.3.7/projects/build_36v61myh1movb/plugins/heroku-

1.0 / src / groovy / grails / plugin / heroku / HerokuBeanPostprocessor.groovy:17:无法解析类

grails.plugin.cloudsupport.A
bstractCloudBeanPostprocessor
[groovyc] @第17行,第1列。
[groovyc]导入grails.plugin.cloudsupport.AbstractCloudBeanPostprocessor
[groovyc] ^
[groovyc]
[groovyc] /app/.grails/1.3.7/projects/build_36v61myh1movb/plugins/heroku-

1.0 / src / groovy / grails / plugin / heroku / HerokuBeanPostprocessor.groovy:27:无法解析类

grails.plugin.cloudsupport.A
bstractCloudBeanPostprocessor
[groovyc] @第27行,第1栏。
[groovyc]类HerokuBeanPostprocessor扩展了AbstractCloudBeanPostprocessor {
[groovyc] ^
[groovyc]
[groovyc] /app/.grails/1.3.7/projects/build_36v61myh1movb/plugins/heroku-

1.0 / src / groovy / grails / plugin / heroku / HerokuMongoBeanConfigurer.groovy:17:无法解析类

grails.plugin.cloudsupport
.AbstractMongoBeanConfigurer
[groovyc] @第17行,第1列。
[groovyc]导入grails.plugin.cloudsupport.AbstractMongoBeanConfigurer
[groovyc] ^
[groovyc]
[groovyc] /app/.grails/1.3.7/projects/build_36v61myh1movb/plugins/heroku-

1.0 / src / groovy / grails / plugin / heroku / HerokuMongoBeanConfigurer.groovy:24:无法解析类

grails.plugin.cloudsupport
.AbstractMongoBeanConfigurer
[groovyc] @第24行,第1栏。
[groovyc]类HerokuMongoBeanConfigurer扩展了AbstractMongoBeanConfigurer {
[groovyc] ^
[groovyc]
[groovyc] 6个错误
执行脚本时出错编译::编译失败
:编译失败
在gant.Gant $ _dispatch_closure5.doCall(Gant.groovy:391)
在gant.Gant $ _dispatch_closure7.doCall(Gant.groovy:415)
在gant.Gant $ _dispatch_closure7.doCall(Gant.groovy)
在gant.Gant.withBuildListeners(Gant.groovy:427)
在gant.Gant.this $ 2 $ withBuildListeners(Gant.groovy)
at gant.Gant $ this $ 2 $ withBuildListeners.callCurrent(未知来源)
在gant.Gant.dispatch(Gant.groovy:415)
在gant.Gant.this $ 2 $ dispatch(Gant.groovy)
在gant.Gant.invokeMethod(Gant.groovy)
在gant.Gant.executeTargets(Gant.groovy:590)
在gant.Gant.executeTargets(Gant.groovy:589)
原因::编译失败
在org.codehaus.groovy.ant.Groovyc.compile(Groovyc.java:920)
在org.codehaus.groovy.ant.Groovyc.execute(Groovyc.java:607)
在org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
在org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
在Compile $ _run_closure4_closure10.doCall(编译:117)
在Compile $ _run_closure4_closure10.doCall(Compile)
在Compile $ _run_closure10.doCall(编译:280)
在Compile $ _run_closure10.call(编译)
在Compile $ _run_closure4.doCall(编译:104)
在Compile $ _run_closure3.doCall(编译:69)
在gant.Gant $ _dispatch_closure5.doCall(Gant.groovy:381)
...还有10个
引起原因:org.codehaus.groovy.control.MultipleCompilationErrorsException:启动失败:
/app/.grails/1.3.7/projects/build_36v61myh1movb/plugins/heroku-1.0/grails-

app / taglib / grails / plugin / heroku / HerokuTagLib.groovy:17:无法解析类

grails.plugin.cloudsupport.AbstractCloudTagLib



在此之前的问题,请注意git push没有给我机会来响应[y,n]提示:
   Plugin mail-1.0 installed
   Resolving plugin JAR dependencies ...
   Executing spring-security-ui-0.1.2 plugin post-install script ...
   Plugin spring-security-ui-0.1.2 installed
   Plugin provides the following new scripts:
   ------------------------------------------
   grails s2ui-override
   You currently already have a version of the plugin installed [mail-1.0]. Do you want to upgrade this version? [y,n]
   Invalid option 'null' - must be one of: [y,n]

   You currently already have a version of the plugin installed [mail-1.0]. Do you want to upgrade this version? [y,n]
   Invalid option 'null' - must be one of: [y,n]

   You currently already have a version of the plugin installed [mail-1.0]. Do you want to upgrade this version? [y,n]
   Invalid option 'null' - must be one of: [y,n]

   No valid response entered - giving up asking.
   Plugin mail-1.0-SNAPSHOT install aborted ...
   You currently already have a version of the plugin installed [spring-security-core-1.2.7.1]. Do you want to upgrade this version? [y,n]
   Invalid option 'null' - must be one of: [y,n]

   You currently already have a version of the plugin installed [spring-security-core-1.2.7.1]. Do you want to upgrade this version? [y,n]
   Invalid option 'null' - must be one of: [y,n]

   You currently already have a version of the plugin installed [spring-security-core-1.2.7.1]. Do you want to upgrade this version? [y,n]
   Invalid option 'null' - must be one of: [y,n]

   No valid response entered - giving up asking.
   Plugin spring-security-core-1.2.1 install aborted ...
   You currently already have a version of the plugin installed [jquery-1.7.1]. Do you want to upgrade this version? [y,n]
   Invalid option 'null' - must be one of: [y,n]

   You currently already have a version of the plugin installed [jquery-1.7.1]. Do you want to upgrade this version? [y,n]
   Invalid option 'null' - must be one of: [y,n]

   You currently already have a version of the plugin installed [jquery-1.7.1]. Do you want to upgrade this version? [y,n]
   Invalid option 'null' - must be one of: [y,n]

   No valid response entered - giving up asking.
   Plugin jquery-1.6.1.1 install aborted ...
       [mkdir] Created dir: /app/.grails/1.3.7/projects/build_28p9jo3vo48wb/plugin-classes
     [groovyc] Compiling 106 source files to /app/.grails/1.3.7/projects/build_28p9jo3vo48wb/plugin-classes
     [groovyc] org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
     [groovyc] /app/.grails/1.3.7/projects/build_28p9jo3vo48wb/plugins/heroku-1.0/grails-app/taglib/grails/plugin/heroku/HerokuTagLib.groovy: 17: unable to resolve class grails.plugin.cloudsupport.Abstr

actCloudTagLib
[groovyc] @第17行,第1列。
[groovyc]导入grails.plugin.cloudsupport.AbstractCloudTagLib
[groovyc] ^
[groovyc]

最佳答案

我也有grails 1.3.7这个问题。

根据Burt的建议,将以下内容添加到BuildConfig.groovy将解决此问题:

compile ':cloud-support:1.0.8'

添加上述内容后,我遵循了Burt的here的基础教程,将我的Web应用程序编译并成功部署到Heroku。

08-26 12:07