grails项目建立在mac而不是linux上

时间:2013-06-26 14:12:45

标签: linux macos grails

我hava grails app我可以在我的mac(10.8.4)上构建,但不能在我的linux盒子上(红帽企业Linux服务器版本6.3(圣地亚哥))。我在linux上遇到以下错误:

export JAVA_HOME=/usr/java/jdk1.6.0_17
grails compile
| Environment set to development.....
> You currently already have a version of the plugin installed [webxml-1.4.1]. Do you want to update to [webxml-1.4]? [y,n] y
| Resolving plugin JAR dependencies.....
> You currently already have a version of the plugin installed [webxml-1.4]. Do you want to update to [webxml-1.4.1]? [y,n] y
| Resolving plugin JAR dependencies.....
| Error Fatal error during compilation org.apache.tools.ant.BuildException: srcdir "/data1/app/project/target/2.1.4/plugins/webxml-1.4/src/groovy" does not exist! (Use --stacktrace to see the full trace)

堆栈跟踪不提供任何更多有用的信息。我的Mac上没有这个。两个系统都有grails 2.1.4。我只看到mac有java 1.6.0_51,而不是linux上的1.6.0_17,但它似乎不太可能是问题的根源。我有什么建议可以解决这个问题吗?

1 个答案:

答案 0 :(得分:1)

手动清除/data1/app/project/target/2.1.4/plugins/然后尝试运行
grails clean && grails compile

如果您有任何提示,请选择nowebxml的提示之一。