private List<ArtifactResult> resolveMavenArtifacts() {
        LOGGER.fine(() -> "Resolving Maven dependencies for Smithy CLI; repos: "
                + remoteRepositories + "; dependencies: " + dependencies);
        CollectRequest collectRequest = new CollectRequest();
        collectRequest.setRepositories(remoteRepositories);
        collectRequest.setDependencies(dependencies);
        DependencyRequest dependencyRequest = new DependencyRequest(collectRequest, filter);

        try {
            List<ArtifactResult> results = repositorySystem
                    .resolveDependencies(session, dependencyRequest)
                    .getArtifactResults();
            LOGGER.fine(() -> "Resolved Maven dependencies: " + results);
            return results;
        } catch (DependencyResolutionException e) {
            throw new DependencyResolverException(e);
        }
    }
@param cacheLocation Maven local cache location.
smithy-cli/src/main/java/software/amazon/smithy/cli/dependencies/MavenDependencyResolver.java