private CollectResult getArtifactDependencies()

in src/main/java/org/apache/dolphinscheduler/maven/SpiDependencyChecker.java [116:127]


    private CollectResult getArtifactDependencies(Artifact artifact)
            throws MojoExecutionException
    {
        try {
            org.eclipse.aether.artifact.Artifact artifact1 = aetherArtifact(artifact);
            Dependency projectDependency = new Dependency(artifact1, null);
            return repositorySystem.collectDependencies(repositorySession, new CollectRequest(projectDependency, null));
        }
        catch (DependencyCollectionException e) {
            throw new MojoExecutionException("Failed to resolve dependencies.", e);
        }
    }