Class MavenInvocationException

  • All Implemented Interfaces:
    java.io.Serializable

    public class MavenInvocationException
    extends java.lang.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.
    Version:
    $Id: MavenInvocationException.java 662043 2008-05-31 16:27:02Z bentmann $
    See Also:
    InvocationResult.getExitCode(), Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static long serialVersionUID  
    • Constructor Summary

      Constructors 
      Constructor Description
      MavenInvocationException​(java.lang.String message)
      Creates a new exception using the specified detail message.
      MavenInvocationException​(java.lang.String message, java.lang.Throwable cause)
      Creates a new exception using the specified detail message and cause.
    • Method Summary

      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • MavenInvocationException

        public MavenInvocationException​(java.lang.String message,
                                        java.lang.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​(java.lang.String message)
        Creates a new exception using the specified detail message.
        Parameters:
        message - The detail message for this exception, may be null.