private static File patchConfFile(File conf, String library) throws IOException {
    File tmpConf = FileUtil.createTempFile("idea-", "-mvn.conf");
    tmpConf.deleteOnExit();
    patchConfFile(conf, tmpConf, library);

    return tmpConf;
  }
private static File patchConfFile(File conf, String library)