gpt4 book ai didi

maven-2 - Emma 运行时 Controller 无法启动

转载 作者:行者123 更新时间:2023-11-30 23:47:29 26 4
gpt4 key购买 nike

我的主要目标是使用 CTL coverage.get 在正在运行的 Web 应用程序上使用 EMMA 获得代码覆盖率。
我使用 emma maven 插件。

因此,我使用检测代码部署了我的 Web 应用程序。
在 tomcat 日志中看到:

EMMA: collecting runtime coverage data ...

但没有:
EMMA: runtime controller started on port [47653]

这意味着我无法使用 ctl,因为没有人在听。
运行时 Controller 未启动的原因可能是什么?

我的 parent pom.xml:
<project>
...
<build>
<plugins>
...
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>emma-maven-plugin</artifactId>
<inherited>true</inherited>
<executions>
<execution>
<id>instrument</id>
<phase>process-test-classes</phase>
<goals>
<goal>instrument</goal>
</goals>
</execution>
</executions>
</plugin>
...
</plugins>
</build>
...
<reporting>
<plugins>
...
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>emma-maven-plugin</artifactId>
<version>1.0-alpha-3</version>
<inherited>true</inherited>
</plugin>
...
</plugins>
</reporting>
...
</project>

提前致谢。任何提示都受到高度赞赏。

最佳答案

尝试这个:

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.10</version>
<configuration>
<systemPropertyVariables combine.children="append">
<emma.rt.control>true|false</emma.rt.control>
</systemPropertyVariables>
</configuration>
</plugin>

关于maven-2 - Emma 运行时 Controller 无法启动,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6467355/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com