由于ehcache而无法编译spring-security-core [英] cannot compile spring-security-core because of ehcache

查看:143
本文介绍了由于ehcache而无法编译spring-security-core的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图为我的圣杯项目添加spring-security,但是它在编译时失败。
这里是我在BuildConfig.groovy中的插件:
`//仅用于构建系统的插件
build:tomcat:7.0.54

I'm trying to add spring-security to my grail project but it fails at compilation. Here are the plugins i have in BuildConfig.groovy: ` // plugins for the build system only build ":tomcat:7.0.54"

    // plugins for the compile step
    compile ":scaffolding:2.1.1"
    compile ':cache:1.1.6'
    compile ":asset-pipeline:1.8.11"
    compile ":mongodb:3.0.1"
    compile ":spring-security-core:2.0-RC3"


    // plugins needed at runtime but not for compilation
    //runtime ":hibernate4:4.3.5.4" // or ":hibernate:3.6.10.16"
    runtime ":jquery:1.11.1"`

编译失败,我得到了这个致命的错误信息:

The compilation failed, I got this fatal error message:


编译期间发生严重错误java.lang.NoClassDefFoundError:net / sf / ehcache / config / CacheConfiguration

Fatal error during compilation java.lang.NoClassDefFoundError: net/sf/ehcache/config/CacheConfiguration

我按照这里,但得到stu ck在'grails compile'步骤之后。
我尝试在插件列表中添加 ehcache 依赖项,但它表示无法下载。我不知道该怎么办。该项目非常简单,我刚刚从我之前提供的链接开始教程。
我只是卸载休眠并安装了mongodb。

I followed the instructions here but get stuck after the 'grails compile' step. I tried adding ehcache dependency in the plugins list but then it says that it couldn't be downloaded. I don't know what to do. The project is very simple, I've just beginning the tutorial from the link I gave before. I just uninstalled hibernate and installed mongodb instead.

推荐答案

dependencies {
    compile "net.sf.ehcache:ehcache-core:2.4.8"
}

我不认为spring-security-core需要hibernate。

I don't think spring-security-core needs hibernate.

这篇关于由于ehcache而无法编译spring-security-core的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆