private void injectDefaultPluginRepositories(MavenExecutionRequest request)
    throws MavenExecutionRequestPopulationException {
    Set<String> definedRepositories = myRepositorySystem.getRepoIds(request.getPluginArtifactRepositories());

    if (!definedRepositories.contains(MavenRepositorySystem.DEFAULT_REMOTE_REPO_ID)) {
      try {
        request.addPluginArtifactRepository(myRepositorySystem.createDefaultRemoteRepository(request));
      }
      catch (Exception e) {
        throw new MavenExecutionRequestPopulationException("Cannot create default remote repository.", e);
      }
    }
  }
private void injectDefaultPluginRepositories(MavenExecutionRequest request)