`
yangzb
  • 浏览: 3502583 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

Failed to install plugin [mail-1.0-SNAPSHOT]. Plugin has missing JAR dependencie

阅读更多

参考:http://grails.1312388.n4.nabble.com/Installing-quot-mail-quot-plugin-fails-td3245058.html

 

 

Unfortunately that doesn't make any difference at the moment, because Grails is not using org.springframework:spring-test, it uses the EBR variant org.springframework:org.springframework.test. So you still will get both dependencies because the name is different.
See http://jira.codehaus.org/browse/GRAILS -6996
Best solution atm would probably be to exclude spring-test from the mail plugin . The documentation is a little vague[1 ] on this, but I guess this will do the trick (under plugins in BuildConfig.groovy):

    runtime( ':mail :1 .0 -SNAPSHOT ' ) {
        excludes "spring-test"
    }


[1 ] can you exclude jar dependencies from plugins , or just exclude transitive plugins ? The documentation, chapter 3.7.10 , only shows example of the latter, but says you can do both.

 

 

解决:file:///XXXXProject/grails-app/conf/BuildConfig.groovy

dependencies {
        // specify dependencies here under either 'build', 'compile', 'runtime', 'test' or 'provided' scopes eg.

        // runtime 'mysql:mysql-connector-java:5.1.13'
        runtime( ':mail:1.0-SNAPSHOT' ) {
            excludes "spring-test"
        }
    }

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics