1

Spring Social プラグインを使用して Grails アプリをコンパイルしようとすると、次のエラーが発生します。

| Error Fatal error during compilation org.apache.tools.ant.BuildException:
 java.lang.NoClassDefFoundError: org/springframework/social/ApiBinding

これは、BuildConfig.groovyプラグイン セクションに追加したものです。

compile ':spring-security-core:1.2.7.3'
compile ":spring-security-facebook:0.14.5"
compile ":spring-social-core:0.1.31"
compile ":spring-social-facebook:0.1.32"
4

1 に答える 1

1

私は同じ問題を抱えていましたが、 「spring-security-facebook」および「spring-security-twitter」 Grails プラグインに切り替えることで解決したと思います。これらは、 Spring Socialプラグインの現在のバージョンを SpringSource から直接ソースするだけです。リポジトリ。

私はエラーなしでGrails 2.3.0で以下を使用しています:

カスタム リポジトリ:

mavenRepo "http://repository.springsource.com/maven/bundles/release/"
mavenRepo "http://repository.springsource.com/maven/bundles/external/"
mavenRepo "http://maven.springframework.org/release/"

プラグイン:

compile ":spring-security-core:1.2.7.3"
compile ":spring-security-facebook:0.15"
compile ":spring-security-twitter:0.5.4"

私が知る限り、問題は単純に、Grails 用の Spring Social Core/Facebook/Twitter プラグインが何年も前のもの (最終更新は 2011 年) であり、Spring Security や Grails の最近のバージョンと互換性がないことです。

于 2013-09-18T02:48:42.150 に答える