Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/spring/11.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Spring grails maven功能测试未能执行_Spring_Grails_Maven 3 - Fatal编程技术网

Spring grails maven功能测试未能执行

Spring grails maven功能测试未能执行,spring,grails,maven-3,Spring,Grails,Maven 3,运行mvn clean installmy grails应用程序时出现此异常 Grails版本2.4.4 Failed to execute goal org.grails:grails-maven-plugin:2.4.4:maven-functional-test (default-maven-functional-test) on project nrm: Execution default-maven-functional-test of goal org.grails:grails-m

运行
mvn clean install
my grails应用程序时出现此异常

Grails版本2.4.4

Failed to execute goal org.grails:grails-maven-plugin:2.4.4:maven-functional-test (default-maven-functional-test) on project nrm: Execution default-maven-functional-test of goal org.grails:grails-maven-plugin:2.4.4:maven-functional-test failed: java.lang.reflect.InvocationTargetException: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.cache.interceptor.CacheInterceptor#0': Cannot resolve reference to bean 'customCacheKeyGenerator' while setting bean property 'keyGenerator'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'customCacheKeyGenerator': Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [grails.plugin.cache.CustomCacheKeyGenerator]: Constructor threw exception; nested exception is java.lang.RuntimeException: java.lang.ClassNotFoundException: org.springframework.cache.interceptor.SimpleKeyGenerator
此外,在tomcat上部署应用程序时也会发生此错误

我的BuildConfig:

dependencies {
    // specify dependencies here under either 'build', 'compile', 'runtime', 'test' or 'provided' scopes e.g.
    runtime 'mysql:mysql-connector-java:5.1.29'
    // runtime 'org.postgresql:postgresql:9.3-1101-jdbc41'
    test "org.grails:grails-datastore-test-support:1.0.2-grails-2.4"
    compile 'org.hibernate:hibernate-ehcache:4.3.5.Final'
    compile 'org.springframework:spring-context:4.0.5.RELEASE'

}

plugins {
    // plugins for the build system only
    build ":tomcat:7.0.55"

    // plugins for the compile step
    compile ":scaffolding:2.1.2"
    compile ':cache:1.1.8'
    compile ":asset-pipeline:1.9.9"
    compile ":mail:1.0.7"
    compile ":mongo-file:1.4.1"
    compile ":mongodb:3.0.2"

    compile ':spring-security-core:2.0-RC4'
    compile ":spring-security-ui:1.0-RC2"

    // plugins needed at runtime but not for compilation 
    runtime ":hibernate4:4.3.5.5"
    runtime ":database-migration:1.4.0"
    runtime ":jquery:1.11.1"
}

在下面添加pom.xml依赖项:

<dependency>
    <groupId>org.springframework.integration</groupId>
    <artifactId>spring-integration-core</artifactId>
    <version>4.0.0.M3</version>
</dependency>

org.springframework.integration
spring集成核心
4.0.0.M3