Buggy code:
public abstract class AbstractDockerMojo extends AbstractMojo implements Contextualizable { public static final String CONTEXT_KEY_SHUTDOWN_ACTIONS = "CONTEXT_KEY_DOCKER_SHUTDOWN_ACTIONS" ; public static final String CONTEXT_KEY_START_CALLED = "CONTEXT_KEY_DOCKER_START_CALLED" ; public static final Object CONTEXT_KEY_LOG_DISPATCHER = "CONTEXT_KEY_DOCKER_LOG_DISPATCHER" ; public static final String DOCKER_HTTPS_PORT = "2376" ; public static final String API_VERSION = "v1.15" ; protected MavenProject project ; protected Settings settings ; protected ImageConfigResolver imageConfigResolver ; protected boolean autoPull ; private String apiVersion ; private String dockerHost ; private String certPath ; protected boolean useColor ; private String logDate ; private boolean skip ; private String image ; private String registry ; Map authConfig ; private List < ImageConfiguration > images ; private AuthConfigFactory authConfigFactory ; protected AnsiLogger ansiLogger ; @ Override public void execute ( ) throws MojoExecutionException , MojoFailureException { this . ansiLogger = new AnsiLogger ( getLog ( ) , useColor ) ; if ( ! ( skip ) ) { DockerAccess access ; try { access = new DockerAccessWithHttpClient ( apiVersion , EnvUtil . extractUrl ( dockerHost ) , getCertPath ( ) , ansiLogger ) ; access . start ( ) ; } catch ( DockerAccessException e ) { throw new MojoExecutionException ( "Cannot<seq2seq4repair_space>create<seq2seq4repair_space>docker<seq2seq4repair_space>access<seq2seq4repair_space>object<seq2seq4repair_space>" , e ) ; } try { executeInternal ( access ) ; } catch ( DockerAccessException exp ) { <START_BUG> throw new MojoExecutionException ( AnsiLogger . colorError ( exp . getMessage ( ) ) , exp ) ; <END_BUG> } finally { access . shutdown ( ) ; } } } private String getCertPath ( ) { } protected abstract void executeInternal ( DockerAccess dockerAccess ) throws DockerAccessException , MojoExecutionException { } protected void registerShutdownAction ( ShutdownAction shutdownAction ) { } protected List < ShutdownAction > getShutdownActionsInExecutionOrder ( ) { } protected void removeShutdownActions ( List < ShutdownAction > actions ) { } private Set < ShutdownAction > getShutdownActions ( ) { } protected List < ImageConfiguration > getImages ( ) { } private List < ImageConfiguration > resolveImages ( ) { } protected boolean matchesConfiguredImages ( String imageList , ImageConfiguration imageConfig ) { } @ Override public void contextualize ( Context context ) throws ContextException { } protected String getImageName ( String name ) { } private String getDefaultRepoName ( ) { } private String getDefaultUserName ( ) { } protected AuthConfig prepareAuthConfig ( String image ) throws MojoExecutionException { } protected static String toContainerAndImageDescription ( String container , String description ) { } protected LogDispatcher getLogDispatcher ( DockerAccess docker ) { } protected ContainerLogOutputSpec getContainerLogSpec ( String containerId , ImageConfiguration imageConfiguration ) { } private void addPrefix ( ContainerLogOutputSpec . Builder builder , String logPrefix , String alias , String containerId ) { } private void addLogFormat ( ContainerLogOutputSpec . Builder builder , LogConfiguration logConfig ) { } private LogConfiguration extractLogConfiguration ( ImageConfiguration imageConfiguration ) { } protected String getRegistry ( ImageConfiguration imageConfig ) { } protected void checkImageWithAutoPull ( DockerAccess docker , String name , String registry ) throws DockerAccessException , MojoExecutionException { } }

Fix:
throw new MojoExecutionException ( AnsiLogger . colorError ( exp . getMessage ( ) , false ) , exp ) ;