@Override
  protected void initLogging(Maven3ServerConsoleLogger consoleWrapper) {
    final RepositorySystem repositorySystem = getComponent(RepositorySystem.class);
    final ArtifactResolver artifactResolver = getComponent(ArtifactResolver.class);
    // Don't try calling setLoggerFactory() removed by MRESOLVER-36 when Maven 3.6.0+ is used.
    // For more information and link to the MRESOLVER-36 see IDEA-201282.
    final Maven3WrapperAetherLoggerFactory loggerFactory = new Maven3WrapperAetherLoggerFactory(consoleWrapper);

    if (artifactResolver instanceof DefaultArtifactResolver) {
      ((DefaultArtifactResolver)artifactResolver).setLoggerFactory(loggerFactory);
    }

    if (repositorySystem instanceof DefaultRepositorySystem) {
      ((DefaultRepositorySystem)repositorySystem).setLoggerFactory(loggerFactory);
    }
  }
@Override
  protected void initLogging(Maven3ServerConsoleLogger consoleWrapper)