3
我想用在user guide搶例子中的依賴拉動運行GEB:GEB使用葡萄 - 下載失敗:公地編解碼器#公地編解碼器; 1.6公地codec.jar
$ cat my.groovy
@Grapes([
@Grab("org.gebish:geb-core:0.9.2"),
@Grab("org.seleniumhq.selenium:selenium-firefox-driver:2.26.0"),
@Grab("org.seleniumhq.selenium:selenium-support:2.26.0")
])
import geb.Browser
Browser.drive{
go "http://grails.org/plugins/"
}
!
但是,上面的代碼導致:
org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
General error during conversion: Error grabbing Grapes -- [download failed: commons-codec#commons-codec;1.6!commons-codec.jar]
java.lang.RuntimeException: Error grabbing Grapes -- [download failed: commons-codec#commons-codec;1.6!commons-codec.jar]
任何幫助將不勝感激。
我將項目轉換爲gradle項目,刪除了Grapes和Grab註釋,並且依賴關係正常。我仍然對獲得註釋版本感興趣。 –