0

今天我清理了一个Grails 2.1项目的 .grails 目录,经过将近 3 周的工作,没有任何问题。我得到的错误是

| Error Fatal error during compilation java.lang.NoSuchMethodError: org.apache.log4j.Logger.isTraceEnabled()Z

我也在圣杯战争中得到:

        SERVER ERROR: Bad Gateway url=http://m2repo.spockframework.org/ext/asm/asm-parent/3.0/asm-parent-3.0.jar

    SERVER ERROR: Bad Gateway url=http://m2repo.spockframework.org/ext/asm/asm/3.0/asm-3.0-javadoc.jar

    SERVER ERROR: Bad Gateway url=http://m2repo.spockframework.org/ext/asm/asm-tree/3.0/asm-tree-3.0-sources.jar

    SERVER ERROR: Bad Gateway url=http://m2repo.spockframework.org/ext/asm/asm-tree/3.0/asm-tree-3.0-src.jar

    SERVER ERROR: Bad Gateway url=http://m2repo.spockframework.org/ext/asm/asm-tree/3.0/asm-tree-3.0-javadoc.jar

    SERVER ERROR: Bad Gateway url=http://m2repo.spockframework.org/ext/log4j/log4j/1.2.9/log4j-1.2.9-javadoc.jar

    SERVER ERROR: Bad Gateway url=http://m2repo.spockframework.org/ext/org/apache/ant/ant-parent/1.7.0/ant-parent-1.7.0.jar

    SERVER ERROR: Bad Gateway url=http://m2repo.spockframework.org/ext/org/apache/ant/ant/1.7.0/ant-1.7.0-javadoc.jar

    SERVER ERROR: Bad Gateway url=http://m2repo.spockframework.org/ext/org/apache/ant/ant-launcher/1.7.0/ant-launcher-1.7.0-sources.jar

    SERVER ERROR: Bad Gateway url=http://m2repo.spockframework.org/ext/org/apache/ant/ant-launcher/1.7.0/ant-launcher-1.7.0-src.jar

    SERVER ERROR: Bad Gateway url=http://m2repo.spockframework.org/ext/org/apache/ant/ant-launcher/1.7.0/ant-launcher-1.7.0-javadoc.jar

依赖关系报告显示冲突

选定的模块被驱逐

antlr 由 antlr 2.7.7 2.7.6

这里

这是我的 BuildConfig.groovy

grails.servlet.version = "2.5" 
grails.project.class.dir = "target/classes"
grails.project.test.class.dir = "target/test-classes"
grails.project.test.reports.dir = "target/test-reports"
grails.project.target.level = 1.6
grails.project.source.level = 1.6

grails.project.dependency.resolution = {
inherits("global") {   }
log "error" 
checksums true

repositories {
    inherits true 
    grailsPlugins()
    grailsHome()
    grailsCentral()
    mavenCentral()
}
dependencies {
    compile 'com.oracle:ojdbc14:10.2.0.2'
}

plugins {
    runtime ":hibernate:$grailsVersion"
    runtime ":jquery:1.7.1"
    runtime ":resources:1.1.6"
    compile (":twitter-bootstrap:2.0.2.25") { excludes 'svn' }
    compile ":audit-logging:0.5.4"
    compile ":quartz:0.4.2"
    compile (":joda-time:1.4")
    compile ":build-test-data:2.0.3"

    compile ":excel-import:1.0.0"


    runtime ":cached-resources:1.0"
    runtime ":cache-headers:1.1.5"
    runtime ":cached-resources:1.0"
    runtime ":zipped-resources:1.0"
    // compile ":cache:1.0.0"

    //provided ":code-coverage:1.2.5"
    //provided ":db-reverse-engineer:0.3"

    //provided ":grails-melody:1.13"
    //provided ":codenarc:0.17"
    //provided ":p6spy:0.5"
    //provided ":app-info:0.4.3"


    build ":tomcat:$grailsVersion"
    test(":spock:0.6") 
}
}

任何建议如何解决这个问题?

4

0 回答 0