2016-08-18 9 views
0

私は依存関係を取得のGrails 2.5.5は、プラグインをインストールカントのjar:2.1.1

解決エラーが表示されます。残りのクライアント・ビルダー:瓶アーティファクトorg.grails.pluginsが見つかりませんでした:このBuildConfig.groovyでgrailsCentral(https://repo.grails.org/grails/plugins)における2.1.1(使用--stacktraceは完全なトレースを参照する)

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

    grailsPlugins() 
    grailsHome() 
    mavenLocal() 
    grailsCentral() 
    mavenCentral() 
    mavenRepo "http://repo.spring.io/milestone" 
    mavenRepo "http://repo1.maven.org/maven2/" 
    mavenRepo "http://repo.grails.org/grails/core" 
    mavenRepo "http://repo.grails.org/grails/plugins" 
} 

dependencies { 
    test "org.grails:grails-datastore-test-support:1.0.2-grails-2.4" 
    compile 'commons-beanutils:commons-beanutils:1.8.3' 
    runtime 'mysql:mysql-connector-java:5.1.34' 
    compile 'com.maxmind.geoip2:geoip2:2.7.0' 
    compile 'org.apache.httpcomponents:httpclient:4.5.2' 
    compile "org.grails.plugins:rest-client-builder:2.1.1" 
} 

私はいつものを試してみました:

grails clean 
grails refresh-depenencies 

しかし運はありません。たくさんの人が同じ問題を抱えていますが、残念ながら彼らの「修正」のどれもが働いていません。

+2

それは 'プラグイン{コンパイル」のように' plugins' DSLの下で依存関係をプラグインGrailsのように宣言する必要があります。 1 '} '。 – dmahapatro

+0

うん、そうだよ!ドキュメンテーションが間違っていた、それはプラグインではなく依存関係に置くと言われました。今働いて! –

+0

どこ?それを修正する。 – rvargas

答えて

2

dmahapatroのソリューション礼儀、プラグインに定義を移動します。残りのクライアント・ビルダー:2.1

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

    grailsPlugins() 
    grailsHome() 
    mavenLocal() 
    grailsCentral() 
    mavenCentral() 
    mavenRepo "http://repo.spring.io/milestone" 
    mavenRepo "http://repo1.maven.org/maven2/" 
    mavenRepo "http://repo.grails.org/grails/core" 
    mavenRepo "http://repo.grails.org/grails/plugins" 
} 

plugins { 
    build ":tomcat:8.0.20" 
    : 
    compile "org.grails.plugins:rest-client-builder:2.1.1" 
} 
関連する問題