Interface InvocationResult

  • All Known Implementing Classes:
    DefaultInvocationResult

    public interface InvocationResult
    Describes the result of a Maven invocation.
    Author:
    jdcasey
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      org.apache.maven.shared.utils.cli.CommandLineException getExecutionException()
      Gets the exception that possibly occurred during the execution of the command line.
      int getExitCode()
      Gets the exit code from the Maven invocation.
    • Method Detail

      • getExecutionException

        org.apache.maven.shared.utils.cli.CommandLineException getExecutionException()
        Gets the exception that possibly occurred during the execution of the command line.
        Returns:
        The exception that prevented to invoke Maven or null if the command line was successfully processed by the operating system.
      • getExitCode

        int getExitCode()
        Gets the exit code from the Maven invocation. A non-zero value indicates a build failure. Note: This value is undefined if getExecutionException() reports an exception.
        Returns:
        The exit code from the Maven invocation.