Class CompilationFailureException

java.lang.Object
java.lang.Throwable
java.lang.Exception
org.apache.maven.plugin.AbstractMojoExecutionException
org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.compiler.CompilationFailureException
All Implemented Interfaces:
Serializable

public class CompilationFailureException extends org.apache.maven.plugin.MojoFailureException
Since:
2.0
Author:
Jason van Zyl
See Also:
  • Constructor Details

    • CompilationFailureException

      public CompilationFailureException(List<org.codehaus.plexus.compiler.CompilerMessage> messages)
      Wrap error messages from the compiler
      Parameters:
      messages - the messages, not null
      Since:
      2.0
  • Method Details

    • longMessage

      public static String longMessage(List<org.codehaus.plexus.compiler.CompilerMessage> messages)
      Long message will have all messages, one per line
      Parameters:
      messages - the messages, not null
      Returns:
      the long error message
      Since:
      2.0
    • shortMessage

      public static String shortMessage(List<org.codehaus.plexus.compiler.CompilerMessage> messages)
      Short message will have the error message if there's only one, useful for errors forking the compiler
      Parameters:
      messages - the messages, not null
      Returns:
      the short error message
      Since:
      2.0.2