Grails - Dependencies problems -
i'm new grails , i'm starting new project (a plugin)
now, when i'm trying execute commands ggts, generate-controller, run-app following
| loading grails 2.2.4 | configuring classpath. | environment set development..... | packaging grails application..... | error error: following plugins failed load due 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)
i have similar problems when try install plugin.
this 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 disable ehcache // excludes 'ehcache' } log "warn" // log level of ivy resolver, either 'error', 'warn', 'info', 'debug' or 'verbose' legacyresolve false // whether secondary resolve on plugin installation, not advised , here backwards compatibility repositories { grailscentral() mavencentral() // uncomment below enable remote dependency resolution // 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 } } }
Comments
Post a Comment