Grails依赖性问题

Grails依赖性问题,grails,Grails,我是Grails的新手,正在启动一个新项目(插件) 现在,当我试图从ggts执行一些命令时,比如generate controller,run app,我得到以下结果 | Loading Grails 2.2.4 | Configuring classpath. | Environment set to development..... | Packaging Grails application..... | Error Error: The following plugins failed

我是Grails的新手,正在启动一个新项目(插件)

现在,当我试图从ggts执行一些命令时,比如generate controller,run app,我得到以下结果

| Loading Grails 2.2.4
| Configuring classpath.
| Environment set to development.....
| Packaging Grails application.....
| Error Error: The following plugins failed to load due to missing dependencies: [hibernate, codecs, controllers, dataSource, scaffolding, urlMappings, converters, mimeTypes, filters, groovyPages]
- Plugin: hibernate
   - Dependencies:
       ! dataSource (Required: 2.2 > *, Found: Not Installed) [INVALID]
       - i18n (Required: 2.2 > *, Found: 2.2.4) 
       ! core (Required: 2.2 > *, Found: 0.1) [INVALID]
       - domainClass (Required: 2.2 > *, Found: 2.2.4) 
- Plugin: codecs
   - Dependencies:
       ! core (Required: 2.2.4, Found: 0.1) [INVALID]
- Plugin: controllers
   - Dependencies:
       ! core (Required: 2.2.4, Found: 0.1) [INVALID]
       - i18n (Required: 2.2.4, Found: 2.2.4) 
       ! urlMappings (Required: 2.2.4, Found: Not Installed) [INVALID]
- Plugin: dataSource
   - Dependencies:
       ! core (Required: 2.2.4, Found: 0.1) [INVALID]
- Plugin: scaffolding
   - Dependencies:
       ! controllers (Required: 2.2.4, Found: Not Installed) [INVALID]
       ! groovyPages (Required: 2.2.4, Found: Not Installed) [INVALID]
- Plugin: urlMappings
   - Dependencies:
       ! core (Required: 2.2.4, Found: 0.1) [INVALID]
- Plugin: converters
   - Dependencies:
       ! controllers (Required: 2.2.4, Found: Not Installed) [INVALID]
       - domainClass (Required: 2.2.4, Found: 2.2.4) 
- Plugin: mimeTypes
   - Dependencies:
       ! core (Required: 2.2.4, Found: 0.1) [INVALID]
       - servlets (Required: 2.2.4, Found: 2.2.4) 
       ! controllers (Required: 2.2.4, Found: Not Installed) [INVALID]
- Plugin: filters
   - Dependencies:
       ! controllers (Required: 2.2.4, Found: Not Installed) [INVALID]
- Plugin: groovyPages
   - Dependencies:
       ! core (Required: 2.2.4, Found: 0.1) [INVALID]
       - i18n (Required: 2.2.4, Found: 2.2.4) 
我在尝试安装插件时也遇到了类似的问题

这是我的BuildConfig.groovy

grails.project.class.dir = "target/classes"
grails.project.test.class.dir = "target/test-classes"
grails.project.test.reports.dir = "target/test-reports"

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'
    legacyResolve false // whether to do a secondary resolve on plugin installation, not advised and here for backwards compatibility
    repositories {
        grailsCentral()
        mavenCentral()
        // uncomment the below to enable remote dependency resolution
        // from public Maven repositories
        //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.21'
    }

    plugins {
        build(":tomcat:$grailsVersion",
              ":release:2.2.1",
              ":rest-client-builder:1.0.3") {
            export = false
        }
    }
}

你能展示你的BuildConfig.groovy吗?另外,减少变量的数量-它能从命令行工作吗?这可能是一个真正的问题,也可能只是GGTS的错误配置。我从命令行创建了一个简单的插件。添加了一些域类和一些服务。它跑得很漂亮。我在ggts中导入了这个项目,它开始抛出这个问题(当试图从terminal或ggts运行时)。您正在使用ggts的哪个版本?在BuildConfig.groovy中添加更多存储库:grailsPlugins()、grailsHome()、grailsCentral()、mavenLocal()和mavenCentral()。我想你错过了grailsPlugins()repo