How to have the Maven build wait for the Jetty server to start in forked mode before running the integration tests?

元气小坏坏 提交于 2019-12-01 00:17:46

After reading a bit about the plugin on http://eclemma.org/jacoco/trunk/doc/report-integration-mojo.html I noticed that it said:

Binds by default to the lifecycle phase: verify.

So, change to:

    <execution>
        <id>post-integration-test</id>
        <phase>verify</phase>
        <goals>
          <goal>report-integration</goal>
        </goals>
        <configuration>
          <dataFile>${project.build.directory}/coverage-reports/jacoco-it.exec</dataFile>
          <outputDirectory>${project.reporting.outputDirectory}/jacoco-it</outputDirectory>
        </configuration>
    </execution>

(or just leave out the phase) and it should work.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!