grails clover,未生成报告

时间:2018-09-28 07:11:53

标签: grails report serializer clover

我试图在grails 2.4.4(java 1.7)中使用Coverage(https://grails.org/plugin/code-coverage)和三叶草(https://grails.org/plugin/clover

覆盖效果很好,但是当我使用四叶草时,它不作任何报告并说:

 ....\grails-2.4.4\src\resources\tests\junit-frames.xsl:19:55: Fatal Error! tried to access class org.apache.xml.serializer.XSLOutputAttributes from class        org.apache.xalan.transformer.TransformerImpl Cause: java.lang.IllegalAccessError: tried to access class org.apache.xml.serializer.XSLOutputAttributes from class      org.apache.xalan.transformer.TransformerImpl 
   [junitreport] C:\Project\GrailsVersions\grails-2.4.4\src\resources\tests\junit-frames.xsl:0:0: Fatal Error! Fatal error during transformation Cause: Fatal error during transformation 
   [junitreport] Failed to process C:\....\target\test-reports\TESTS-TestSuites.xml  

[junitreport] Processing C:\....\target\test-reports\TESTS-TestSuites.xml to C:\Users\....\AppData\Local\Temp\null17502929 
[junitreport] Loading stylesheet C:\Project\GrailsVersions\grails-2.4.4\src\resources\tests\saxon\junit-frames.xsl  
 [junitreport] C:\Project\GrailsVersions\grails-2.4.4\src\resources\tests\saxon\junit-frames.xsl:866:55: Error! xsl:value-of necesita un atributo: select

我也使用推荐的配置:

grails.project.dependency.resolution = {
        plugins {
            compile 'org.grails.plugins:clover:4.3.1'
        }
        // For *Grails 2.2* or later you must also add a dependency to the Clover Core
        // or use the "legacyResolve true" option
        dependencies {
            compile 'org.openclover:clover:4.3.1'
        }
    }

我将serializer-2.7.1更改为serializer-2.7.0,但随后我可以启动任何东西。 谢谢

0 个答案:

没有答案