2

Grails は、再インストールするまで問題なく動作していました。「run-app」または create-app コマンド プロセス中に以下のエラーが表示されるようになりました。

  • エラー 依存関係の解決に失敗しました (詳細については、BuildConfig.groovy でログ レベルを「警告」に設定してください): - org.grails.plugins:tomcat:2.2.1

詳細

未解決の依存関係 org.grails.plugins#tomcat;2.2.1: 依存関係の解決中にいくつかの問題が発生しました: org.grails.plugins#tomcat;2.2.1 {build=[default]}: パターン / の位置 46 のトークンの終わりが無効です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) to fork the JVM to 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; for example, uncomment this to disable ehcache:
        // excludes 'ehcache'
    }
    log "error" // log level of Ivy resolver, either 'error', 'warn', 'info', 'debug' or 'verbose'
    checksums true // Whether to verify checksums on resolve
    legacyResolve false // whether to do a secondary resolve on plugin installation, not advised and here for backwards compatibility

    repositories {
        inherits true // Whether to inherit repository definitions from plugins

        grailsPlugins()
        grailsHome()
        grailsCentral()

        mavenLocal()
        mavenCentral()

        // uncomment these (or add new ones) to enable remote dependency resolution from 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) to 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"

    }
}

** * * Buildconfig を「警告」に設定した後** * ** * ** * ** * ** *

| 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 at 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 at 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 at 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 at 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 at 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 at 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 at 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 at 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 at 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 at 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 at 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 at 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 at 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 at 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 at 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 at 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 at position 22 in pattern /Users/Sanks/Dropbox/1]KeyThemes1/emote/Developer/AppDev/emote/lib/[artifact]-[revision].[ext]
        ::::::::::::::::::::::::::::::::::::::::::::::
| Error Failed to resolve dependencies (Set log level to 'warn' in BuildConfig.groovy for more information):
- org.grails.plugins:tomcat:2.2.1
4

2 に答える 2

0

アップデート

大げさな推測をするのではなく、BuildConfig.groovy を確認する必要があります。Ivy リポジトリを使用しているように見えるため、リゾルバー パターンがレイアウト構造と一致していないというのが私の印象です。

BuildConfig.groovyを確認する必要があります。それ以外の場合は、推測することしかできませんが、エラーを修正するのは簡単に見えます。デバッグを有効にすることもできます。

grails-app/conf/BuildConfig.groovyの行を変更します

log "error"

log "debug"

その後、コードを貼り付けたくない場合は、問題を簡単に修正できます。


カスタム アイビー リゾルバーを使用しているようです。リゾルバー パターンが間違っている可能性があります。

「&」記号を引用符でエスケープする必要があるかもしれません (勝手な推測)。私は通常、フォルダー名や奇妙な文字の間のスペースを避けます。

@dmahapatroからの提案が機能しない場合は、 BuildConfig.groovyに関する詳細を投稿してください。

于 2013-05-05T04:01:41.750 に答える
0

これを build.config のプラグイン セクションに追加してください

compile (":kickstart-with-bootstrap:0.9.6") {
            excludes 'jquery'            
}
于 2013-12-19T21:08:17.880 に答える