@Override
    public List<ResolvedArtifact> resolve() {
        if (remoteRepositories.isEmpty()) {
            LOGGER.warning("No Maven repositories are configured, so only the local repository cache is being used");
        }

        final List<ArtifactResult> results = resolveMavenArtifacts();
        final List<ResolvedArtifact> artifacts = new ArrayList<>(results.size());
        for (ArtifactResult result : results) {
            Artifact artifact = result.getArtifact();
            artifacts.add(new ResolvedArtifact(artifact.getFile().toPath(),
                    artifact.getGroupId(),
                    artifact.getArtifactId(),
                    artifact.getVersion()));
        }
        return artifacts;
    }
@param cacheLocation Maven local cache location.
smithy-cli/src/main/java/software/amazon/smithy/cli/dependencies/MavenDependencyResolver.java