Ошибка Grails Webflow2.0.0

Я использую Grails 2.0.0 и пытался загрузить webflow 2.0.0, но получаю только webflow 2.0.0-RELEASE в виде zip-папки или файла jar. Оба webflow 2.0.0 и webflow 2.0.0-RELEASE то же?

Я даже получил jar-файл grails-webflow-2.0.3. Я также пробовал использовать webflow 1.3.8, который я получил с официального сайта Grails. Я пытался каждый раз менять имя плагина в операторе компиляции в Build.Config и запускал, и каждый раз получаю такую ​​​​ошибку:

ПРЕДУПРЕЖДЕНИЕ об ошибке: указанное определение зависимости compile(: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"
}
}

person user22    schedule 13.07.2012    source источник


Ответы (1)


Правильный способ добавить веб-поток — поместить зависимость в BuildConfig.groovy.

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

Не загружайте и не добавляйте его вручную

Или попробуйте заменить свои репозитории этим

repositories {
        inherits true
        grailsPlugins()
        grailsHome()
        grailsCentral()
        mavenLocal()
        mavenCentral()
        mavenRepo name: "Grails Snapshots", root:"http://snapshots.repository.codehaus.org/"
        mavenRepo name: "Spring Milestone", root:"http://maven.springframework.org/milestone/"
        mavenRepo name: "Spring Milestone", root:"http://maven.springframework.org/milestone/"
        ebr()       
        mavenRepo "http://repository.codehaus.org"
        mavenRepo "http://download.java.net/maven/2/"
        mavenRepo "http://repository.jboss.com/maven2/"
        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"
    }
person Fabiano Taioli    schedule 13.07.2012
comment
Я сделал то же самое... все равно получаю сообщение об ошибке --Error WARNING: указанное определение зависимости compile(:webflow-2.0.0) недействительно! Пропуская.. - person user22; 17.07.2012
comment
Вы можете опубликовать свой BuildConfig.groovy? - person Fabiano Taioli; 17.07.2012
comment
Я включил свой BuildConfig.groovy в вопрос - person user22; 24.07.2012