2012-02-02 13 views
2

これは私の最初の質問です。まだ尋ねられていないことを祈っています。 問題:Intellij IDEA 11.0.2がGrails 2.0.0への依存関係を解決できない

| Loading Grails 2.0.0 
| Configuring classpath 
:: problems summary :: 
:::: WARNINGS 
     module not found: org.grails.plugins#tomcat;1.3.7 
    ==== grailsPlugins: tried 
     -- artifact org.grails.plugins#tomcat;1.3.7!tomcat.zip: 
     /home/Mircea/IdeaProjects/lib/tomcat-1.3.7.zip 
    ==== grailsHome: tried 
     /home/Mircea/SDKs/grails-2.0.0/lib/org.grails.plugins/tomcat/ivy-1.3.7.xml 
     -- artifact org.grails.plugins#tomcat;1.3.7!tomcat.zip: 
     /home/Mircea/SDKs/grails-2.0.0/lib/org.grails.plugins/tomcat/jars/tomcat-1.3.7.zip 
     /home/Mircea/SDKs/grails-2.0.0/lib/org.grails.plugins/tomcat/bundles/tomcat-1.3.7.zip 
    ==== grailsHome: tried 
     /home/Mircea/SDKs/grails-2.0.0/src/libs/tomcat-1.3.7.xml 
     -- artifact org.grails.plugins#tomcat;1.3.7!tomcat.zip: 
     /home/Mircea/SDKs/grails-2.0.0/src/libs/tomcat-1.3.7.zip 
    ==== grailsHome: tried 
     /home/Mircea/SDKs/grails-2.0.0/dist/tomcat-1.3.7.xml 
     -- artifact org.grails.plugins#tomcat;1.3.7!tomcat.zip: 
     /home/Mircea/SDKs/grails-2.0.0/dist/tomcat-1.3.7.zip 
    ==== grailsHome: tried 
     /home/Mircea/.grails/2.0.0/cached-installed-plugins/tomcat-1.3.7.xml 
     -- artifact org.grails.plugins#tomcat;1.3.7!tomcat.zip: 
     /home/Mircea/.grails/2.0.0/cached-installed-plugins/tomcat-1.3.7.zip 
    ==== grailsHome: tried 
     -- artifact org.grails.plugins#tomcat;1.3.7!tomcat.zip: 
     /home/Mircea/SDKs/grails-2.0.0/plugins/tomcat-1.3.7.zip 
     module not found: org.grails.plugins#hibernate;1.3.7 
    ==== grailsPlugins: tried 
     -- artifact org.grails.plugins#hibernate;1.3.7!hibernate.zip: 
     /home/Mircea/IdeaProjects/lib/hibernate-1.3.7.zip 
    ==== grailsHome: tried 
     /home/Mircea/SDKs/grails-2.0.0/lib/org.grails.plugins/hibernate/ivy-1.3.7.xml 
     -- artifact org.grails.plugins#hibernate;1.3.7!hibernate.zip: 
     /home/Mircea/SDKs/grails-2.0.0/lib/org.grails.plugins/hibernate/jars/hibernate-1.3.7.zip 
     /home/Mircea/SDKs/grails-2.0.0/lib/org.grails.plugins/hibernate/bundles/hibernate-1.3.7.zip 
    ==== grailsHome: tried 
     /home/Mircea/SDKs/grails-2.0.0/src/libs/hibernate-1.3.7.xml 
     -- artifact org.grails.plugins#hibernate;1.3.7!hibernate.zip: 
     /home/Mircea/SDKs/grails-2.0.0/src/libs/hibernate-1.3.7.zip 
    ==== grailsHome: tried 
     /home/Mircea/SDKs/grails-2.0.0/dist/hibernate-1.3.7.xml 
     -- artifact org.grails.plugins#hibernate;1.3.7!hibernate.zip: 
     /home/Mircea/SDKs/grails-2.0.0/dist/hibernate-1.3.7.zip 
    ==== grailsHome: tried 
     /home/Mircea/.grails/2.0.0/cached-installed-plugins/hibernate-1.3.7.xml 
     -- artifact org.grails.plugins#hibernate;1.3.7!hibernate.zip: 
     /home/Mircea/.grails/2.0.0/cached-installed-plugins/hibernate-1.3.7.zip 
    ==== grailsHome: tried 
     -- artifact org.grails.plugins#hibernate;1.3.7!hibernate.zip: 
     /home/Mircea/SDKs/grails-2.0.0/plugins/hibernate-1.3.7.zip 
     :::::::::::::::::::::::::::::::::::::::::::::: 
     ::   UNRESOLVED DEPENDENCIES   :: 
     :::::::::::::::::::::::::::::::::::::::::::::: 
     :: org.grails.plugins#tomcat;1.3.7: not found 
     :: org.grails.plugins#hibernate;1.3.7: not found 
     :::::::::::::::::::::::::::::::::::::::::::::: 

:: problems summary :: 
:::: WARNINGS 
     module not found: org.grails.plugins#tomcat;1.3.7 
    ==== grailsPlugins: tried 
     -- artifact org.grails.plugins#tomcat;1.3.7!tomcat.zip: 
     /home/Mircea/IdeaProjects/lib/tomcat-1.3.7.zip 
    ==== grailsHome: tried 
     /home/Mircea/SDKs/grails-2.0.0/lib/org.grails.plugins/tomcat/ivy-1.3.7.xml 
     -- artifact org.grails.plugins#tomcat;1.3.7!tomcat.zip: 
     /home/Mircea/SDKs/grails-2.0.0/lib/org.grails.plugins/tomcat/jars/tomcat-1.3.7.zip 
     /home/Mircea/SDKs/grails-2.0.0/lib/org.grails.plugins/tomcat/bundles/tomcat-1.3.7.zip 
    ==== grailsHome: tried 
     /home/Mircea/SDKs/grails-2.0.0/src/libs/tomcat-1.3.7.xml 
     -- artifact org.grails.plugins#tomcat;1.3.7!tomcat.zip: 
     /home/Mircea/SDKs/grails-2.0.0/src/libs/tomcat-1.3.7.zip 
    ==== grailsHome: tried 
     /home/Mircea/SDKs/grails-2.0.0/dist/tomcat-1.3.7.xml 
     -- artifact org.grails.plugins#tomcat;1.3.7!tomcat.zip: 
     /home/Mircea/SDKs/grails-2.0.0/dist/tomcat-1.3.7.zip 
    ==== grailsHome: tried 
     /home/Mircea/.grails/2.0.0/cached-installed-plugins/tomcat-1.3.7.xml 
     -- artifact org.grails.plugins#tomcat;1.3.7!tomcat.zip: 
     /home/Mircea/.grails/2.0.0/cached-installed-plugins/tomcat-1.3.7.zip 
    ==== grailsHome: tried 
     -- artifact org.grails.plugins#tomcat;1.3.7!tomcat.zip: 
     /home/Mircea/SDKs/grails-2.0.0/plugins/tomcat-1.3.7.zip 
     module not found: org.grails.plugins#hibernate;1.3.7 
    ==== grailsPlugins: tried 
     -- artifact org.grails.plugins#hibernate;1.3.7!hibernate.zip: 
     /home/Mircea/IdeaProjects/lib/hibernate-1.3.7.zip 
    ==== grailsHome: tried 
     /home/Mircea/SDKs/grails-2.0.0/lib/org.grails.plugins/hibernate/ivy-1.3.7.xml 
     -- artifact org.grails.plugins#hibernate;1.3.7!hibernate.zip: 
     /home/Mircea/SDKs/grails-2.0.0/lib/org.grails.plugins/hibernate/jars/hibernate-1.3.7.zip 
     /home/Mircea/SDKs/grails-2.0.0/lib/org.grails.plugins/hibernate/bundles/hibernate-1.3.7.zip 
    ==== grailsHome: tried 
     /home/Mircea/SDKs/grails-2.0.0/src/libs/hibernate-1.3.7.xml 
     -- artifact org.grails.plugins#hibernate;1.3.7!hibernate.zip: 
     /home/Mircea/SDKs/grails-2.0.0/src/libs/hibernate-1.3.7.zip 
    ==== grailsHome: tried 
     /home/Mircea/SDKs/grails-2.0.0/dist/hibernate-1.3.7.xml 
     -- artifact org.grails.plugins#hibernate;1.3.7!hibernate.zip: 
     /home/Mircea/SDKs/grails-2.0.0/dist/hibernate-1.3.7.zip 
    ==== grailsHome: tried 
     /home/Mircea/.grails/2.0.0/cached-installed-plugins/hibernate-1.3.7.xml 
     -- artifact org.grails.plugins#hibernate;1.3.7!hibernate.zip: 
     /home/Mircea/.grails/2.0.0/cached-installed-plugins/hibernate-1.3.7.zip 
    ==== grailsHome: tried 
     -- artifact org.grails.plugins#hibernate;1.3.7!hibernate.zip: 
     /home/Mircea/SDKs/grails-2.0.0/plugins/hibernate-1.3.7.zip 
     :::::::::::::::::::::::::::::::::::::::::::::: 
     ::   UNRESOLVED DEPENDENCIES   :: 
     :::::::::::::::::::::::::::::::::::::::::::::: 
     :: org.grails.plugins#tomcat;1.3.7: not found 
     :: org.grails.plugins#hibernate;1.3.7: not found 
     :::::::::::::::::::::::::::::::::::::::::::::: 

| Error Failed to resolve dependencies (Set log level to 'warn' in BuildConfig.groovy for more information): 

- org.grails.plugins:tomcat:1.3.7 
- org.grails.plugins:hibernate:1.3.7 

任意の考え:

私はのIntelliJ IDEA 11.0.2を使用して新しいアプリケーションを作成するたびに新しいGrailsの2.0.0で111.277を構築するには、私は、次のスタックトレースを取得しますか?私はすでに解決策を探し求めましたが、私が探していたものは全く見つかりませんでした。

答えて

2

プラグインのハードコードされたバージョン番号についてはBuildConfig.groovyを確認してください。それは$grailsVersionを参照する必要があります。

grails.project.dependency.resolution = { 
    . . . 
    plugins { 
     runtime ":hibernate:$grailsVersion" 
     build ":tomcat:$grailsVersion" 
     . . . 
    } 
    . . . 
} 

それは正しいです確認するためにapplication.propertiesを確認します。

app.grails.version=2.0.0 
plugins.hibernate=2.0.0 
plugins.tomcat=2.0.0 

はまた、プロジェクトの設定でIDEA Grailsのライブラリのバージョンを確認する - グローバルライブラリ>。


11.0.2にパッチを当てて、新しいGrails 2.0.0プロジェクトを作成しました。

Grails 2.0.0のインストールが壊れている可能性があります。 Grailsの新規インストールを試してください:

  1. IDEAからGrails 2.0.0グローバルライブラリを削除してください。
  2. Grails 2.0.0を新しいディレクトリにインストールします。
  3. IDEAで新しいGrailsプロジェクトを作成し、[作成...]ボタンを使用して新しいインストールをセットアップします。
+0

これらはBuildConfig.groovyのようです。他の考え? – mdstaicu

+0

プロジェクト設定 - >グローバルライブラリ - バージョンの> Grailsのライブラリ2.0.0 – mdstaicu

+0

プラグイン{ ランタイム ":休止状態:$ grailsVersion" ランタイム ":jqueryの:1.7.1" ランタイム ":リソース:1.1.5" ビルド ":tomcat:$ grailsVersion" } 'code' – mdstaicu

関連する問題