Program: 9993
Project: 9993
Buggy source:
protected Collection<IdeDependency> getDependencies(IdeDependency[] ideDependencies) throws MojoExecutionException {
  List<IdeDependency> dependencies=new ArrayList<IdeDependency>(Arrays.asList(ideDependencies));
  List<IdeDependency> extraRbs=resolveResourceBundles(dependencies);
  for (  IdeDependency ideDependency : dependencies) {
    if (ideDependency.isReferencedProject()) {
      String template=IdeUtils.PROJECT_NAME_DEFAULT_TEMPLATE;
      String projectName=IdeUtils.getProjectName(template,ideDependency);
      ideDependency.setFile(new File("String_Node_Str" + projectName + "String_Node_Str"+ projectName+ "String_Node_Str"));
      ideDependency.setSourceAttachment(new File("String_Node_Str" + projectName + "String_Node_Str"));
    }
 else {
      String ideDependencyScope=null;
      if (ideDependency.isSystemScoped()) {
        ideDependencyScope=Artifact.SCOPE_SYSTEM;
      }
 else       if (ideDependency.isTestDependency()) {
        ideDependencyScope=Artifact.SCOPE_TEST;
      }
 else       if (ideDependency.isProvided()) {
        ideDependencyScope=Artifact.SCOPE_PROVIDED;
      }
      Artifact art=artifactFactory.createArtifact(ideDependency.getGroupId(),ideDependency.getArtifactId(),ideDependency.getVersion(),ideDependencyScope,ideDependency.getType());
      MavenUtils.resolveArtifact(art,resolver,localRepository,remoteRepositories);
      if (useM2Home) {
        ideDependency.setFile(new File(ideDependency.getFile().getPath().replace(localRepository.getBasedir(),"String_Node_Str")));
      }
 else {
        ideDependency.setFile(ideDependency.getFile().getAbsoluteFile());
      }
      if (Arrays.binarySearch(SDK_SOURCES,ideDependency.getArtifactId()) >= 0) {
        ideDependency.setSourceAttachment(new File("String_Node_Str" + ideDependency.getArtifactId() + "String_Node_Str"));
      }
    }
  }
  Set<IdeDependency> result=new HashSet<IdeDependency>();
  result.addAll(dependencies);
  result.addAll(extraRbs);
  return result;
}

Fixed version (ground truth):
protected Collection<IdeDependency> getDependencies(IdeDependency[] ideDependencies) throws MojoExecutionException {
  List<IdeDependency> dependencies=new ArrayList<IdeDependency>(Arrays.asList(ideDependencies));
  List<IdeDependency> extraRbs=resolveResourceBundles(dependencies);
  for (  IdeDependency ideDependency : dependencies) {
    if (ideDependency.isReferencedProject()) {
      String template=IdeUtils.PROJECT_NAME_DEFAULT_TEMPLATE;
      String projectName=IdeUtils.getProjectName(template,ideDependency);
      ideDependency.setFile(new File("String_Node_Str" + projectName + "String_Node_Str"+ projectName+ "String_Node_Str"));
      ideDependency.setSourceAttachment(new File("String_Node_Str" + projectName + "String_Node_Str"));
    }
 else {
      String ideDependencyScope=null;
      if (ideDependency.isSystemScoped()) {
        ideDependencyScope=Artifact.SCOPE_SYSTEM;
      }
 else       if (ideDependency.isTestDependency()) {
        ideDependencyScope=Artifact.SCOPE_TEST;
      }
 else       if (ideDependency.isProvided()) {
        ideDependencyScope=Artifact.SCOPE_PROVIDED;
      }
      Artifact art=artifactFactory.createArtifact(ideDependency.getGroupId(),ideDependency.getArtifactId(),ideDependency.getVersion(),ideDependencyScope,ideDependency.getType());
      art=MavenUtils.resolveArtifact(project,art,resolver,localRepository,remoteRepositories);
      if (useM2Home) {
        ideDependency.setFile(new File(ideDependency.getFile().getPath().replace(localRepository.getBasedir(),"String_Node_Str")));
      }
 else {
        ideDependency.setFile(ideDependency.getFile().getAbsoluteFile());
      }
      if (Arrays.binarySearch(SDK_SOURCES,ideDependency.getArtifactId()) >= 0) {
        ideDependency.setSourceAttachment(new File("String_Node_Str" + ideDependency.getArtifactId() + "String_Node_Str"));
      }
    }
  }
  Set<IdeDependency> result=new HashSet<IdeDependency>();
  result.addAll(dependencies);
  result.addAll(extraRbs);
  return result;
}