Interface InvocationResult

  • All Known Implementing Classes:
    DefaultInvocationResult

    public interface InvocationResult
    Describes the result of a Maven invocation.
    Version:
    $Id: InvocationResult.java 1401842 2012-10-24 19:49:47Z rfscholte $
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      org.codehaus.plexus.util.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.codehaus.plexus.util.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.