Program: 44738
Project: 44738
Buggy source:
protected void testArchetype(String groupId,String artifactId,String version,Properties archetypeRequiredParameters) throws Exception {
  File targetDir=new File(baseDir,"String_Node_Str" + artifactId);
  FileUtils.deleteDirectory(targetDir);
  targetDir.mkdirs();
  EventMonitor eventMonitor=new DefaultEventMonitor(new PlexusLoggerAdapter(new MavenEmbedderConsoleLogger()));
  Properties props=new Properties();
  props.setProperty("String_Node_Str",groupId);
  props.setProperty("String_Node_Str",artifactId);
  props.setProperty("String_Node_Str",version);
  props.setProperty("String_Node_Str","String_Node_Str");
  props.setProperty("String_Node_Str","String_Node_Str");
  props.setProperty("String_Node_Str",UUID.randomUUID().toString());
  props.setProperty("String_Node_Str",targetDir.getAbsolutePath());
  props.setProperty("String_Node_Str",targetDir.getAbsolutePath());
  if (archetypeRequiredParameters != null) {
    for (    String key : archetypeRequiredParameters.stringPropertyNames()) {
      props.setProperty(key,archetypeRequiredParameters.getProperty(key));
    }
  }
  MavenProject parent=maven.readProject(getDefaultArchetypePom(new File(targetDir,"String_Node_Str")));
  System.setProperties((Properties)sysProps.clone());
  maven.execute(parent,Collections.singletonList("String_Node_Str"),eventMonitor,new ConsoleDownloadMonitor(),props,targetDir);
  System.setProperties((Properties)sysProps.clone());
  targetDir=new File(targetDir,props.getProperty("String_Node_Str"));
  MavenProject prj=maven.readProject(new File(targetDir,"String_Node_Str"));
  maven.execute(prj,Collections.singletonList("String_Node_Str"),eventMonitor,new ConsoleDownloadMonitor(),new Properties(),targetDir);
}

Fixed version (ground truth):
protected void testArchetype(String groupId,String artifactId,String version,Properties archetypeRequiredParameters) throws Exception {
  File targetDir=new File(baseDir,"String_Node_Str" + artifactId);
  FileUtils.deleteDirectory(targetDir);
  targetDir.mkdirs();
  EventMonitor eventMonitor=new DefaultEventMonitor(new PlexusLoggerAdapter(new MavenEmbedderConsoleLogger()));
  Properties props=new Properties();
  props.setProperty("String_Node_Str",groupId);
  props.setProperty("String_Node_Str",artifactId);
  props.setProperty("String_Node_Str",version);
  props.setProperty("String_Node_Str","String_Node_Str");
  props.setProperty("String_Node_Str","String_Node_Str");
  props.setProperty("String_Node_Str",UUID.randomUUID().toString());
  props.setProperty("String_Node_Str",targetDir.getAbsolutePath());
  props.setProperty("String_Node_Str",targetDir.getAbsolutePath());
  if (archetypeRequiredParameters != null) {
    for (Enumeration e=archetypeRequiredParameters.propertyNames(); e.hasMoreElements(); ) {
      String key=(String)e.nextElement();
      props.setProperty(key,archetypeRequiredParameters.getProperty(key));
    }
  }
  MavenProject parent=maven.readProject(getDefaultArchetypePom(new File(targetDir,"String_Node_Str")));
  System.setProperties((Properties)sysProps.clone());
  maven.execute(parent,Collections.singletonList("String_Node_Str"),eventMonitor,new ConsoleDownloadMonitor(),props,targetDir);
  System.setProperties((Properties)sysProps.clone());
  targetDir=new File(targetDir,props.getProperty("String_Node_Str"));
  MavenProject prj=maven.readProject(new File(targetDir,"String_Node_Str"));
  maven.execute(prj,Collections.singletonList("String_Node_Str"),eventMonitor,new ConsoleDownloadMonitor(),new Properties(),targetDir);
}