Program: 141653
Project: 141653
Buggy source:
@Override public void run(IProgressMonitor monitor) throws InvocationTargetException, InterruptedException {
  ILibrariesService service=(ILibrariesService)GlobalServiceRegister.getDefault().getService(ILibrariesService.class);
  INexusService nexusService=(INexusService)GlobalServiceRegister.getDefault().getService(INexusService.class);
  NexusServerBean nexusServerBean=TalendLibsServerManager.getInstance().getCustomNexusServer();
  monitor.beginTask("String_Node_Str",false ? IProgressMonitor.UNKNOWN : jars.size());
  for (int i=0; i < jars.size(); i++) {
    Map<String,String> o=jars.get(i);
    String jn=TalendQuoteUtils.removeQuotes(o.get("String_Node_Str"));
    String jnv=TalendQuoteUtils.removeQuotes(o.get("String_Node_Str"));
    String jv=String.valueOf(o.get("String_Node_Str"));
    String a=jn.replaceFirst("String_Node_Str","String_Node_Str");
    if (StringUtils.isBlank(jnv)) {
      continue;
    }
    if (StringUtils.isNotBlank(jv)) {
      File jarFile=new File(jv);
      if (jarFile.exists()) {
        try {
          monitor.subTask("String_Node_Str" + jn);
          service.deployLibrary(jarFile.toURI().toURL(),"String_Node_Str" + a + "String_Node_Str"+ jnv+ "String_Node_Str");
        }
 catch (        Exception e) {
          e.printStackTrace();
        }
        cConfigStoredInfo.put(jn,jnv);
        o.put("String_Node_Str","String_Node_Str");
      }
    }
    if (cConfigStoredInfo.get(jn) == null) {
      cConfigStoredInfo.put(jn,jnv);
      continue;
    }
    if (cConfigStoredInfo.get(jn).equals(jnv)) {
      continue;
    }
 else {
      MavenArtifact ma=new MavenArtifact();
      ma.setArtifactId(a);
      ma.setGroupId("String_Node_Str");
      ma.setVersion(cConfigStoredInfo.get(jn));
      ma.setType("String_Node_Str");
      String p=PomUtil.getAbsArtifactPath(ma);
      if (p != null) {
        File file=new File(p);
        try {
          if (file.exists()) {
            File tmp=new File(ExportJobUtil.getTmpFolder() + File.separator + jn);
            FilesUtils.copyFile(file,tmp);
            monitor.subTask("String_Node_Str" + jn);
            service.deployLibrary(tmp.toURI().toURL(),"String_Node_Str" + a + "String_Node_Str"+ jnv+ "String_Node_Str");
          }
        }
 catch (        Exception e) {
          e.printStackTrace();
        }
      }
    }
    if (nexusServerBean == null) {
      monitor.subTask("String_Node_Str" + jn + "String_Node_Str");
    }
 else {
      monitor.subTask("String_Node_Str" + jn + "String_Node_Str"+ nexusServerBean.getServer());
      Map metadata=nexusService.getMavenMetadata(nexusServerBean,"String_Node_Str",a,jn);
      if (metadata.get("String_Node_Str").equals(jn)) {
        monitor.subTask("String_Node_Str" + jn + "String_Node_Str");
      }
    }
    monitor.worked(i);
  }
  ((ILibrariesService)GlobalServiceRegister.getDefault().getService(ILibrariesService.class)).updateModulesNeededForCurrentJob(getProcess());
  monitor.done();
  if (monitor.isCanceled())   throw new InterruptedException("String_Node_Str");
}

Fixed version (ground truth):
@Override public void run(IProgressMonitor monitor) throws InvocationTargetException, InterruptedException {
  if (jars == null || jars.isEmpty()) {
    return;
  }
  ILibrariesService service=(ILibrariesService)GlobalServiceRegister.getDefault().getService(ILibrariesService.class);
  INexusService nexusService=null;
  NexusServerBean nexusServerBean=null;
  if (updateNexusJars) {
    nexusService=(INexusService)GlobalServiceRegister.getDefault().getService(INexusService.class);
    nexusServerBean=TalendLibsServerManager.getInstance().getCustomNexusServer();
  }
  monitor.beginTask("String_Node_Str",false ? IProgressMonitor.UNKNOWN : jars.size());
  for (int i=0; i < jars.size(); i++) {
    Map<String,String> o=jars.get(i);
    String jn=TalendQuoteUtils.removeQuotes(o.get("String_Node_Str"));
    String jnv=TalendQuoteUtils.removeQuotes(o.get("String_Node_Str"));
    String jv=String.valueOf(o.get("String_Node_Str"));
    String a=jn.replaceFirst("String_Node_Str","String_Node_Str");
    if (StringUtils.isBlank(jnv)) {
      continue;
    }
    if (StringUtils.isNotBlank(jv)) {
      File jarFile=new File(jv);
      if (jarFile.exists()) {
        try {
          monitor.subTask("String_Node_Str" + jn);
          service.deployLibrary(jarFile.toURI().toURL(),"String_Node_Str" + a + "String_Node_Str"+ jnv+ "String_Node_Str",true,updateNexusJars);
        }
 catch (        Exception e) {
          e.printStackTrace();
        }
        cConfigStoredInfo.put(jn,jnv);
        o.put("String_Node_Str","String_Node_Str");
      }
    }
    if (cConfigStoredInfo.get(jn) == null) {
      cConfigStoredInfo.put(jn,jnv);
      continue;
    }
    if (cConfigStoredInfo.get(jn).equals(jnv)) {
      continue;
    }
 else {
      MavenArtifact ma=new MavenArtifact();
      ma.setArtifactId(a);
      ma.setGroupId("String_Node_Str");
      ma.setVersion(cConfigStoredInfo.get(jn));
      ma.setType("String_Node_Str");
      String p=PomUtil.getAbsArtifactPath(ma);
      if (p != null) {
        File file=new File(p);
        try {
          if (file.exists()) {
            File tmp=new File(ExportJobUtil.getTmpFolder() + File.separator + jn);
            FilesUtils.copyFile(file,tmp);
            monitor.subTask("String_Node_Str" + jn);
            service.deployLibrary(tmp.toURI().toURL(),"String_Node_Str" + a + "String_Node_Str"+ jnv+ "String_Node_Str");
          }
        }
 catch (        Exception e) {
          e.printStackTrace();
        }
      }
    }
    if (nexusServerBean == null) {
      monitor.subTask("String_Node_Str" + jn + "String_Node_Str");
    }
 else {
      monitor.subTask("String_Node_Str" + jn + "String_Node_Str"+ nexusServerBean.getServer());
      Map metadata=nexusService.getMavenMetadata(nexusServerBean,"String_Node_Str",a,jn);
      if (metadata.get("String_Node_Str").equals(jn)) {
        monitor.subTask("String_Node_Str" + jn + "String_Node_Str");
      }
    }
    monitor.worked(i);
  }
  monitor.done();
  if (monitor.isCanceled())   throw new InterruptedException("String_Node_Str");
}