dependencies - How can grails "dependency error" be resolved? -
grails running fine till decided re-install it: started showing below error during "run-app" or create-app command process-
- error failed resolve dependencies (set log level 'warn' in buildconfig.groovy more information): - org.grails.plugins:tomcat:2.2.1
details
unresolved dependencies org.grails.plugins#tomcat;2.2.1: several problems occurred while resolving dependency: org.grails.plugins#tomcat;2.2.1 {build=[default]}:invalid end of token @ position 46 in pattern /users/sanks/documents/startup/app-resources/1] grails development/sandbox & archive/emote reboot/lib/[artifact]-[revision].[ext]
*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" // uncomment (and adjust settings) fork jvm isolate classpaths //grails.project.fork = [ // run: [maxmemory:1024, minmemory:64, debug:false, maxperm:256] //] grails.project.dependency.resolution = { // inherit grails' default dependencies inherits("global") { // specify dependency exclusions here; example, uncomment disable ehcache: // excludes 'ehcache' } log "error" // log level of ivy resolver, either 'error', 'warn', 'info', 'debug' or 'verbose' checksums true // whether verify checksums on resolve legacyresolve false // whether secondary resolve on plugin installation, not advised , here backwards compatibility repositories { inherits true // whether inherit repository definitions plugins grailsplugins() grailshome() grailscentral() mavenlocal() mavencentral() // uncomment these (or add new ones) enable remote dependency resolution public maven repositories //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 e.g. // runtime 'mysql:mysql-connector-java:5.1.22' } plugins { runtime ":jquery:1.8.3" runtime ":resources:1.1.6" // uncomment these (or add new ones) enable additional resources capabilities //runtime ":zipped-resources:1.0" //runtime ":cached-resources:1.0" //runtime ":yui-minify-resources:0.1.5" build ":tomcat:$grailsversion" runtime ":database-migration:1.3.2" } }
****after setting buildconfig "warn"***************
| loading grails 2.2.1 | configuring classpath | downloading: tomcat-2.2.1.pom.sha1 :: problems summary :: :::: warnings :::::::::::::::::::::::::::::::::::::::::::::: :: unresolved dependencies :: :::::::::::::::::::::::::::::::::::::::::::::: :: org.grails.plugins#tomcat;2.2.1: several problems occurred while resolving dependency: org.grails.plugins#tomcat;2.2.1 {build=[default]}: invalid end of token @ position 22 in pattern /users/sanks/dropbox/1]keythemes1/emote/developer/appdev/emote/lib/[artifact]-[revision].[ext] :::::::::::::::::::::::::::::::::::::::::::::: | downloading: jquery-1.8.3.pom.sha1 | downloading: resources-1.1.6.pom.sha1 | downloading: database-migration-1.3.2.pom.sha1 | downloading: zipped-resources-1.0.pom.sha1 | downloading: facebook-graph-0.14.pom.sha1 | downloading: cache-headers-1.1.5.pom.sha1 | downloading: cached-resources-1.0.pom.sha1 | downloading: mongodb-1.2.0.pom.sha1 :: problems summary :: :::: warnings :::::::::::::::::::::::::::::::::::::::::::::: :: unresolved dependencies :: :::::::::::::::::::::::::::::::::::::::::::::: :: org.grails.plugins#jquery;1.8.3: several problems occurred while resolving dependency: org.grails.plugins#jquery;1.8.3 {runtime=[default]}: invalid end of token @ position 22 in pattern /users/sanks/dropbox/1]keythemes1/emote/developer/appdev/emote/lib/[artifact]-[revision].[ext] :: org.grails.plugins#resources;1.1.6: several problems occurred while resolving dependency: org.grails.plugins#resources;1.1.6 {runtime=[default]}: invalid end of token @ position 22 in pattern /users/sanks/dropbox/1]keythemes1/emote/developer/appdev/emote/lib/[artifact]-[revision].[ext] :: org.grails.plugins#database-migration;1.3.2: several problems occurred while resolving dependency: org.grails.plugins#database-migration;1.3.2 {runtime=[default]}: invalid end of token @ position 22 in pattern /users/sanks/dropbox/1]keythemes1/emote/developer/appdev/emote/lib/[artifact]-[revision].[ext] :: org.grails.plugins#zipped-resources;1.0: several problems occurred while resolving dependency: org.grails.plugins#zipped-resources;1.0 {runtime=[default]}: invalid end of token @ position 22 in pattern /users/sanks/dropbox/1]keythemes1/emote/developer/appdev/emote/lib/[artifact]-[revision].[ext] :: org.grails.plugins#facebook-graph;0.14: several problems occurred while resolving dependency: org.grails.plugins#facebook-graph;0.14 {runtime=[default]}: invalid end of token @ position 22 in pattern /users/sanks/dropbox/1]keythemes1/emote/developer/appdev/emote/lib/[artifact]-[revision].[ext] :: org.grails.plugins#cache-headers;1.1.5: several problems occurred while resolving dependency: org.grails.plugins#cache-headers;1.1.5 {runtime=[default]}: invalid end of token @ position 22 in pattern /users/sanks/dropbox/1]keythemes1/emote/developer/appdev/emote/lib/[artifact]-[revision].[ext] :: org.grails.plugins#cached-resources;1.0: several problems occurred while resolving dependency: org.grails.plugins#cached-resources;1.0 {runtime=[default]}: invalid end of token @ position 22 in pattern /users/sanks/dropbox/1]keythemes1/emote/developer/appdev/emote/lib/[artifact]-[revision].[ext] :: org.grails.plugins#mongodb;1.2.0: several problems occurred while resolving dependency: org.grails.plugins#mongodb;1.2.0 {runtime=[default]}: invalid end of token @ position 22 in pattern /users/sanks/dropbox/1]keythemes1/emote/developer/appdev/emote/lib/[artifact]-[revision].[ext] :::::::::::::::::::::::::::::::::::::::::::::: | downloading: jquery-1.8.3.pom.sha1 | downloading: resources-1.1.6.pom.sha1 | downloading: database-migration-1.3.2.pom.sha1 | downloading: zipped-resources-1.0.pom.sha1 | downloading: facebook-graph-0.14.pom.sha1 | downloading: cache-headers-1.1.5.pom.sha1 | downloading: cached-resources-1.0.pom.sha1 | downloading: mongodb-1.2.0.pom.sha1 :: problems summary :: :::: warnings :::::::::::::::::::::::::::::::::::::::::::::: :: unresolved dependencies :: :::::::::::::::::::::::::::::::::::::::::::::: :: org.grails.plugins#jquery;1.8.3: several problems occurred while resolving dependency: org.grails.plugins#jquery;1.8.3 {runtime=[default]}: invalid end of token @ position 22 in pattern /users/sanks/dropbox/1]keythemes1/emote/developer/appdev/emote/lib/[artifact]-[revision].[ext] :: org.grails.plugins#resources;1.1.6: several problems occurred while resolving dependency: org.grails.plugins#resources;1.1.6 {runtime=[default]}: invalid end of token @ position 22 in pattern /users/sanks/dropbox/1]keythemes1/emote/developer/appdev/emote/lib/[artifact]-[revision].[ext] :: org.grails.plugins#database-migration;1.3.2: several problems occurred while resolving dependency: org.grails.plugins#database-migration;1.3.2 {runtime=[default]}: invalid end of token @ position 22 in pattern /users/sanks/dropbox/1]keythemes1/emote/developer/appdev/emote/lib/[artifact]-[revision].[ext] :: org.grails.plugins#zipped-resources;1.0: several problems occurred while resolving dependency: org.grails.plugins#zipped-resources;1.0 {runtime=[default]}: invalid end of token @ position 22 in pattern /users/sanks/dropbox/1]keythemes1/emote/developer/appdev/emote/lib/[artifact]-[revision].[ext] :: org.grails.plugins#facebook-graph;0.14: several problems occurred while resolving dependency: org.grails.plugins#facebook-graph;0.14 {runtime=[default]}: invalid end of token @ position 22 in pattern /users/sanks/dropbox/1]keythemes1/emote/developer/appdev/emote/lib/[artifact]-[revision].[ext] :: org.grails.plugins#cache-headers;1.1.5: several problems occurred while resolving dependency: org.grails.plugins#cache-headers;1.1.5 {runtime=[default]}: invalid end of token @ position 22 in pattern /users/sanks/dropbox/1]keythemes1/emote/developer/appdev/emote/lib/[artifact]-[revision].[ext] :: org.grails.plugins#cached-resources;1.0: several problems occurred while resolving dependency: org.grails.plugins#cached-resources;1.0 {runtime=[default]}: invalid end of token @ position 22 in pattern /users/sanks/dropbox/1]keythemes1/emote/developer/appdev/emote/lib/[artifact]-[revision].[ext] :: org.grails.plugins#mongodb;1.2.0: several problems occurred while resolving dependency: org.grails.plugins#mongodb;1.2.0 {runtime=[default]}: invalid end of token @ position 22 in pattern /users/sanks/dropbox/1]keythemes1/emote/developer/appdev/emote/lib/[artifact]-[revision].[ext] :::::::::::::::::::::::::::::::::::::::::::::: | error failed resolve dependencies (set log level 'warn' in buildconfig.groovy more information): - org.grails.plugins:tomcat:2.2.1
update
we need see buildconfig.groovy instead of making wild guesses. impression resolver pattern doesn't match layout structure, looks using ivy repository.
do give more accurate answers, need see buildconfig.groovy... otherwise, can speculate, error looks simple fix, turn on debugging.
in grails-app/conf/buildconfig.groovy, change line
log "error"
to
log "debug"
after should easy enough fix problem, if don't want paste code.
you're apparently using custom ivy resolver, maybe resolver pattern seems wrong.
it need quote escape '&' sign (wild guess). avoid spaces between folder names or weird characters.
please post more details buildconfig.groovy if suggestion @dmahapatro doesn't work.
Comments
Post a Comment