2013-06-26 35 views
0

我可以在我的mac(10.8.4)上構建grails應用程序,但不能在我的linux系統上安裝(Red Hat Enterprise Linux Server 6.3版本(聖地亞哥))。我在linux上遇到以下錯誤:grails prject建立在mac上,但不是在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

清潔/data1/app/project/target/2.1.4/plugins/手動然後嘗試運行
grails clean && grails compile

加選擇no的提示的一個約webxml,如果你得到任何。

+0

謝謝,它的工作。我也發現這個[回答](http://stackoverflow.com/questions/8375636/how-to-skip-plugin-update-prompt-when-running-grails-run-app)關於如何使這項工作在非交互模式。 – sjcomp

相關問題