public void run()

in core-it-support/core-it-plugins/maven-it-plugin-artifact/src/main/java/org/apache/maven/plugin/coreit/ResolveTransitiveMojo.java [145:184]


        public void run() {
            if (dependencies != null) {
                try {
                    Set artifacts = new LinkedHashSet();

                    for (Dependency dependency : dependencies) {
                        Artifact artifact = factory.createArtifactWithClassifier(
                                dependency.getGroupId(),
                                dependency.getArtifactId(),
                                dependency.getVersion(),
                                dependency.getType(),
                                dependency.getClassifier());

                        getLog().info("[MAVEN-CORE-IT-LOG] Resolving " + ResolveTransitiveMojo.this.getId(artifact));

                        artifacts.add(artifact);
                    }

                    Artifact origin = factory.createArtifact("it", "it", "0.1", null, "pom");

                    artifacts = resolver.resolveTransitively(
                                    artifacts, origin, remoteRepositories, localRepository, metadataSource)
                            .getArtifacts();

                    for (Object artifact1 : artifacts) {
                        Artifact artifact = (Artifact) artifact1;

                        if (artifact.getFile() != null) {
                            props.setProperty(
                                    ResolveTransitiveMojo.this.getId(artifact),
                                    artifact.getFile().getPath());
                        }

                        getLog().info("[MAVEN-CORE-IT-LOG]   " + artifact.getFile());
                    }
                } catch (Exception e) {
                    error = e;
                }
            }
        }