使用pitest-maven插件时出现错误“ HTML中请求了未知的侦听器”

时间:2018-12-21 15:28:09

标签: maven pitest

我试图将 pitest 工具集成到我的Maven项目中,但是当我配置 pom.xml 并运行命令时,它失败了!任何帮助表示赞赏!

> mvn org.pitest:pitest-maven:mutationCoverage

这是我的环境,

  • JDK 8.0
  • Eclipse Neon 4.6.1
  • pitest-maven 1.4.3
  • junit 4.12
  • hamcrest-core 1.3

这是我的 pom.xml 的配置,

<build>
    <plugins>
        <plugin>
        <groupId>org.pitest</groupId>
                <artifactId>pitest-maven</artifactId>
                <version>1.4.3</version>
                <configuration>
                <targetClasses>
                        <param>org.xp.pitester.*</param>
                        </targetClasses>
                <targetTests>
                        <param>org.xp.pitester.*</param>
                </targetTests>
                    <mutators>
                    <mutator>MATH</mutator>
                    </mutators>
            </configuration>
            </plugin>
        </plugins>
</build>

这是错误日志“ HTML中请求了未知的侦听器”,

[INFO] Scanning for projects...
[INFO]                                                                         
[INFO] -------------------------------------------------------------------- 
[INFO] Building pitester 0.0.1-SNAPSHOT
[INFO] --------------------------------------------------------------------
[INFO] 
...
[INFO] --------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] --------------------------------------------------------------------
[INFO] Total time: 1.615 s
[INFO] Finished at: 2018-12-21T21:47:24+08:00
[INFO] Final Memory: 11M/230M
[INFO] --------------------------------------------------------------------
[ERROR] Failed to execute goal org.pitest:pitest-maven:1.4.3:
mutationCoverage (default-cli) on project pitester: Execution 
default-cli of goal org.pitest:pitest-maven:1.4.3:mutationCoverage failed: 
Unknown listener requested in HTML
[ERROR] 

0 个答案:

没有答案