2012-08-10 85 views
0

我運行的Grails 2.1.0,我不能安裝一個Webflow插件:Grails的2.1.0無法安裝的Webflow插件

$ grails install-plugin webflow 
| Plugin installed. 

$ grails 
| Configuring classpath 

:: problems summary :: 
:::: WARNINGS 
module not found: org.springframework.webflow#org.springframework.webflow;2.0.8.RELEASE 
... 
:::::::::::::::::::::::::::::::::::::::::::::: 
::   UNRESOLVED DEPENDENCIES   :: 
:::::::::::::::::::::::::::::::::::::::::::::: 
:: org.springframework.webflow#org.springframework.webflow;2.0.8.RELEASE: not found 
:: org.springframework.webflow#org.springframework.binding;2.0.8.RELEASE: not found 
:: org.springframework.webflow#org.springframework.js;2.0.8.RELEASE: not found 
:::::::::::::::::::::::::::::::::::::::::::::: 

有沒有人有什麼想法?

謝謝

回答

1

install-plugin在grails 2.0中已棄用。編輯BuildConfig.groovy文件中的插件部分:

plugins{ 
    ... 
    compile ":webflow:2.0.0" 
} 

而快樂的webflow編碼。順便說一句,如果你想更深入地瞭解grails webflow,我建議你閱讀http://livesnippets.cloudfoundry.com/docs/

+0

謝謝,這節省了我很多的痛苦,我欣賞鏈接也:) – 2012-08-15 22:17:38