@NotNull
  public static File resolveDefaultLocalRepository() {
    String mavenRepoLocal = System.getProperty(MAVEN_REPO_LOCAL);

    if (mavenRepoLocal != null) {
      MavenLog.LOG.info("using " + MAVEN_REPO_LOCAL + "=" + mavenRepoLocal + " as maven home");
      return new File(mavenRepoLocal);
    }

    String forcedM2Home = System.getProperty(PROP_FORCED_M2_HOME);
    if (forcedM2Home != null) {
      MavenLog.LOG.error(PROP_FORCED_M2_HOME + " is deprecated, use maven.repo.local property instead");
      return new File(forcedM2Home);
    }

    File result = doResolveLocalRepository(resolveUserSettingsFile(null), null);

    if (result == null) {
      result = new File(resolveM2Dir(), REPOSITORY_DIR);
    }

    try {
      return result.getCanonicalFile();
    }
    catch (IOException e) {
      return result;
    }
  }
@NotNull
  public static File resolveDefaultLocalRepository()