code: protected Set<Artifact> resolveArtifactDependencies(Artifact artifact) throws ArtifactResolutionException,
          ArtifactNotFoundException, ProjectBuildingException
      {
          Artifact pomArtifact =
              this.factory.createArtifact(artifact.getGroupId(), artifact.getArtifactId(), artifact.getVersion(), "",
                  "pom");
  
          MavenProject pomProject =
              this.mavenProjectBuilder.buildFromRepository(pomArtifact, this.remoteRepos, this.local);
  
          return resolveDependencyArtifacts(pomProject);
      }
docs: This method resolves all transitive dependencies of an artifact.
  
  @param artifact the artifact used to retrieve dependencies
  @return resolved set of dependencies
  @throws ArtifactResolutionException error
  @throws ArtifactNotFoundException error
  @throws ProjectBuildingException error
  @throws InvalidDependencyVersionException error