2016-05-10 13 views
0

私は、Idea 13がインストールされているマシンでGrailsプロジェクトを開発しました。 私は別のマシンに移動しました。私はIDEの最新バージョンをインストールしました。GrailsプロジェクトをIntellij Idea IDEの古いバージョンから最新バージョンへ移動

インストール手順の説明に従って、Grails(バージョン2.2.1)とGroovy(バージョン2.4.6)をインストールしました。私は既存のソースから新しいプロジェクトを作成しましたが、実行しようとするとプラグインに関するエラーが表示されます。

ツール - > Grails - >プラグインのメニュー(またはプロジェクトのルートを右クリック - > Grails - >プラグイン)のタブが存在しないため、プラグインがなくプロジェクトにインストールできません。私は新しいGrailsプロジェクトを作成しようとしましたが、タブが存在するので、プロジェクトをインポートした方法に依存するかもしれません。

ここでは、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}.war" 

grails.project.dependency.resolution = { 

    // inherit Grails' default dependencies 
    inherits("global") { 
     // specify dependency exclusions here; for example, uncomment this to disable ehcache: 
     // excludes 'ehcache' 
    } 
    log "warn" // log level of Ivy resolver, either 'error', 'warn', 'info', 'debug' or 'verbose' 
    checksums true // Whether to verify checksums on resolve 

    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 eg. 

     runtime 'mysql:mysql-connector-java:5.1.20' 

    } 

    plugins { 
     runtime ":hibernate:$grailsVersion" 
     runtime ":jquery:1.8.0" 
     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.4" 

     build ":tomcat:$grailsVersion" 

     runtime ":database-migration:1.1" 

     compile ':cache:1.0.0' 

     compile ":ckeditor:4.4.1.0" 


    } 
} 

ここでは、Grailsのコンソールでのエラーです:

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

- org.grails.plugins:cache:1.0.0 
- org.grails.plugins:ckeditor:4.4.1.0 

私はコードをビルドしてエラーを受信せずに、それをインポートできますか?

編集: 私は全く新しいプロジェクトを作成しました。これは、デフォルトのプラグインがインストールされますが、[ツール] - > [Grails-経由で新しいプラグインを追加することはできません>プラグイン

誤りがある

(すなわちlog4jのプラグインをインストール):

|Resolving plugin log4j-xml. Please wait... 
|Error resolving plugin [name:log4j-xml, group:org.grails.plugins, version:0.2]. Plugin not found. 
Error | 
Plugin not found for name [log4j-xml] and version [0.2] 
+0

あなたが取得しているエラーを投稿することができますか? Thanks – Biswas

+0

@Biswasエラーログが追加されました – FrancescoDS

+0

キャッシュとckeditorプラグインをアップグレードする必要があります。彼らは時代遅れであり、あなたがエラーを取得しているので、それはmavenリポジトリには見つかりません。それをキャッシュにアップグレード:1.1.8とckeditor:4.5.4.0それは正常に動作します。参考までhttps://grails.org/plugin/cacheとhttps://grails.org/plugin/ckeditorありがとう – Biswas

答えて

関連する問題