我正在使用 Grails 2.0.0,我尝试下载 webflow 2.0.0,但我只得到 webflow 2.0.0-RELEASE 作为 zip 文件夹或 jar 文件。webflow 2.0.0 和 webflow 2.0.0-RELEASE相同?
我什至还有 grails-webflow-2.0.3 jar 文件。我还尝试了从 grails 官方网站获得的 webflow 1.3.8。我每次都尝试在 Build.Config 的编译语句中更改插件的名称,然后每次运行并最终都会出现这种错误:
错误警告:指定的依赖定义编译(:org.springframework.webflow-2.0.0.RELEASE)无效!跳过..
我该怎么办?
下面给出的是我的 BuildConfig.groovy 文件:
grails.servlet.version = "2.5" // Change depending on target container
compliance (2.5 or 3.0)
grails.project.class.dir = "target/classes"
grails.project.test.class.dir = "target/test-classes"
grails.project.test.reports.dir = "target/test-reports"
grails.project.target.level = 1.6
grails.project.source.level = 1.6
//grails.project.war.file = "target/${appName}-${appVersion}.war"
grails.project.dependency.resolution = {
// inherit Grails' default dependencies
inherits("global") {
// uncomment to disable ehcache
// excludes 'ehcache'
}
log "warn" // log level of Ivy resolver, either 'error', 'warn', 'info',
'debug' or 'verbose'
checksums true // Whether to verify checksums on resolve
repositories {
inherits true // Whether to inherit repository definitions from
plugins
grailsPlugins()
grailsHome()
grailsCentral()
mavenCentral()
// uncomment these to enable remote dependency resolution
from public Maven repositories
mavenCentral()
mavenRepo
"http://repository.springsource.com/maven/bundles/release"
mavenRepo
"http://repository.springsource.com/maven/bundles/external"
mavenRepo
"http://repository.springsource.com/maven/libraries/release"
mavenRepo
"http://repository.springsource.com/maven/libraries/external"
mavenLocal()
mavenRepo "http://snapshots.repository.codehaus.org"
mavenRepo "http://repository.codehaus.org"
mavenRepo "http://download.java.net/maven/2/"
mavenRepo "http://repository.jboss.com/maven2/"
}
dependencies {
// specify dependencies here under either 'build', 'compile',
'runtime', 'test' or 'provided' scopes eg.
// runtime 'mysql:mysql-connector-java:5.1.16'
}
plugins {
runtime ":hibernate:$grailsVersion"
runtime ":jquery:1.7.1"
runtime ":resources:1.1.5"
compile ":webflow:2.0.0"
// compile ":spring-security-core:1.2.7.3"
build ":tomcat:$grailsVersion"
}
}