Class MavenInvocationException

  • All Implemented Interfaces:
    Serializable

    public class MavenInvocationException
    extends Exception
    Signals an error during the construction of the command line used to invoke Maven, e.g. illegal invocation arguments. This should not be confused with a failure of the invoked Maven build itself which will be reported by means of a non-zero exit code.
    See Also:
    InvocationResult.getExitCode(), Serialized Form
    • Constructor Detail

      • MavenInvocationException

        public MavenInvocationException​(String message,
                                        Throwable cause)
        Creates a new exception using the specified detail message and cause.
        Parameters:
        message - The detail message for this exception, may be null.
        cause - The nested exception, may be null.
      • MavenInvocationException

        public MavenInvocationException​(String message)
        Creates a new exception using the specified detail message.
        Parameters:
        message - The detail message for this exception, may be null.