private void addProxyInfo(MavenRepository repository, RemoteRepository.Builder builder) {
        if (repository.getProxyHost().isPresent()) {
            builder.setProxy(
                    getProxy(repository.getProxyHost().get(), repository.getProxyCredentials().orElse(null)));
        } else if (commonProxy != null) {
            builder.setProxy(commonProxy);
        }
    }
@param cacheLocation Maven local cache location.
smithy-cli/src/main/java/software/amazon/smithy/cli/dependencies/MavenDependencyResolver.java