Class BuildFailureException

  • All Implemented Interfaces:
    Serializable

    public class BuildFailureException
    extends MyBuildException
    This is needed as a wrapper to MojoFailureException in Mojo.execute() to avoid maven-specific classes.

    We read from the documentation which applies to this exception type also: A MojoFailureException is something less catastrophic (compared to a MojoExecutionException), a goal can fail, but it might not be the end of the world for your Maven build. A unit test can fail, or a MD5 checksum can fail; both of these are potential problems, but you don’t want to return an exception that is going to kill the entire build. In this situation you would throw a MojoFailureException. Maven provides for different "resiliency" settings when it comes to project failure. Throwing this exception causes a "BUILD FAILURE" message to be displayed.

    A MojoFailureException is thrown if an expected problem (such as a compilation failure) occurs. Created: Fri Sep 30 15:01:16 2016

    Version:
    1.0
    Author:
    Ernst Reissner
    See Also:
    Serialized Form
    • Constructor Detail

      • BuildFailureException

        public BuildFailureException​(String message)
      • BuildFailureException

        public BuildFailureException​(String message,
                                     Throwable cause)