Apache

Docs Plugins

Invoker Plugin 3.10.1 · Other versions

The Maven Invoker Plugin is used to run a set of Maven projects. The plugin can determine whether each project execution is successful, and optionally can verify the output generated from a given project execution.

Source
Edit this page
Wrong?
Report a problem

Inspect logs for failed tests

In the usual build all tests pass as we expect, so printing logs from all tests to project build log make our standard build log illegible. The problem begin when some of test was failed, especially when happened on CI system when access to files from build workspace is difficult.

In order to help investigation on failed test we can use option: streamLogsOnFailures. Now logs from all failed test will be printed to project build log when all test will have finished.

<project>
  ...
  <build>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-invoker-plugin</artifactId>
        <version>3.10.1</version>
        <configuration>
          <streamLogsOnFailures>true</streamLogsOnFailures>
        </configuration>
      </plugin>
    </plugins>
  </build>
  ...
</project>