Buggy code:
public abstract class AbstractGcloudMojo extends AbstractMojo { protected MavenProject maven_project ; protected String gcloud_directory ; protected String docker_host ; protected String docker_tls_verify ; protected String docker_cert_path ; protected String verbosity ; protected String gcloud_project ; protected String version ; protected boolean quiet = true ; protected String application_directory ; protected boolean non_docker_mode = false ; protected boolean remote ; protected String docker_build ; protected boolean deployCommand = false ; protected abstract ArrayList < String > getCommand ( String appDir ) throws MojoExecutionException { } protected ArrayList < String > setupInitialCommands ( ArrayList < String > commands ) throws MojoExecutionException { } protected ArrayList < String > setupExtraCommands ( ArrayList < String > commands ) throws MojoExecutionException { } protected static enum WaitDirective { WAIT_SERVER_STARTED , WAIT_SERVER_STOPPED ; } protected void startCommand ( File appDirFile , ArrayList < String > devAppServerCommand , AbstractGcloudMojo . WaitDirective waitDirective ) throws MojoExecutionException { } protected String getApplicationDirectory ( ) throws MojoExecutionException { } protected String getProjectIdfromMetaData ( ) { } protected String getAppId ( ) throws MojoExecutionException { } private static InputStream getInputStream ( File file ) { } protected AppEngineWebXml getAppEngineWebXml ( String webAppDir ) throws MojoExecutionException { } protected RepositorySystem repoSystem ; protected RepositorySystemSession repoSession ; protected List < RemoteRepository > projectRepos ; protected List < RemoteRepository > pluginRepos ; protected void resolveAndSetSdkRoot ( ) throws MojoExecutionException { } protected File executeAppCfgStagingCommand ( String appDir ) throws MojoExecutionException { ArrayList < String > arguments = new ArrayList < > ( ) ; File destinationDir = Files . createTempDir ( ) ; getLog ( ) . info ( ( "Creating<seq2seq4repair_space>staging<seq2seq4repair_space>directory<seq2seq4repair_space>in:<seq2seq4repair_space>" + ( destinationDir . getAbsolutePath ( ) ) ) ) ; resolveAndSetSdkRoot ( ) ; <START_BUG> if ( getAppEngineWebXml ( appDir ) . getBetaSettings ( ) . containsKey ( "java_quickstart" ) ) { <END_BUG> arguments . add ( "--enable_quickstart" ) ; } arguments . add ( "--disable_update_check" ) ; File appDirFile = new File ( appDir ) ; if ( ! ( new File ( appDirFile , "WEB-INF//web.xml" ) . exists ( ) ) ) { PrintWriter out ; try { out = new PrintWriter ( new File ( appDirFile , "WEB-INF//web.xml" ) ) ; out . println ( "<?xml<seq2seq4repair_space>version=\"1.0\"<seq2seq4repair_space>encoding=\"utf-8\"?>" ) ; out . println ( "<web-app<seq2seq4repair_space>version=\"3.1\"<seq2seq4repair_space>xmlns=\"http:////xmlns.jcp.org//xml//ns//javaee\"<seq2seq4repair_space>xmlns:xsi=\"http:////www.w3.org//2001//XMLSchema-instance\"<seq2seq4repair_space>xsi:schemaLocation=\"http:////xmlns.jcp.org//xml//ns//javaee<seq2seq4repair_space>http:////xmlns.jcp.org//xml//ns//javaee//web-app_3_1.xsd\"><//web-app>" ) ; out . close ( ) ; } catch ( FileNotFoundException ex ) { throw new MojoExecutionException ( ( "Error:<seq2seq4repair_space>creating<seq2seq4repair_space>default<seq2seq4repair_space>web.xml<seq2seq4repair_space>" + ex ) ) ; } } arguments . add ( "-A" ) ; arguments . add ( "notused" ) ; if ( ( ( version ) != null ) && ( ! ( version . isEmpty ( ) ) ) ) { arguments . add ( "-V" ) ; arguments . add ( version ) ; } arguments . add ( "stage" ) ; arguments . add ( appDir ) ; arguments . add ( destinationDir . getAbsolutePath ( ) ) ; getLog ( ) . info ( ( "Running<seq2seq4repair_space>appcfg<seq2seq4repair_space>" + ( Joiner . on ( "<seq2seq4repair_space>" ) . join ( arguments ) ) ) ) ; AppCfg . main ( arguments . toArray ( new String [ arguments . size ( ) ] ) ) ; File [ ] yamlFiles = new File ( destinationDir , "//WEB-INF//appengine-generated" ) . listFiles ( ) ; for ( File f : yamlFiles ) { try { Files . copy ( f , new File ( appDir , f . getName ( ) ) ) ; } catch ( IOException ex ) { throw new MojoExecutionException ( ( "Error:<seq2seq4repair_space>copying<seq2seq4repair_space>yaml<seq2seq4repair_space>file<seq2seq4repair_space>" + ex ) ) ; } } File qs = new File ( destinationDir , "//WEB-INF//quickstart-web.xml" ) ; if ( qs . exists ( ) ) { try { Files . copy ( qs , new File ( appDir , "//WEB-INF//quickstart-web.xml" ) ) ; } catch ( IOException ex ) { throw new MojoExecutionException ( ( "Error:<seq2seq4repair_space>copying<seq2seq4repair_space>WEB-INF//quickstart-web.xml" + ex ) ) ; } } File index = new File ( appDir , "//WEB-INF//datastore-indexes.xml" ) ; if ( index . exists ( ) ) { index . delete ( ) ; } return destinationDir ; } private void installJavaAppEngineComponent ( String pythonLocation ) throws MojoExecutionException { } }

Fix:
if ( "true" . equals ( getAppEngineWebXml ( appDir ) . getBetaSettings ( ) . get ( "java_quickstart" ) ) ) {