code: public void executeMojo(MojoExecution mojo) throws MojoExecutionException, MojoFailureException {
  		try {
  			this.buildPluginManager.executeMojo(this.session, mojo);
  		} catch (PluginConfigurationException
  				| PluginManagerException e) {
  			throw new MojoFailureException(e.getLocalizedMessage(), e);
  		}
  	}
docs: Execute the given mojo.
  
  @param mojo the mojo to execute.
  @throws MojoExecutionException if the mojo cannot be run properly.
  @throws MojoFailureException if the build failed.