Package org.eclipse.aether.graph

Examples of org.eclipse.aether.graph.Dependency


        for ( org.apache.maven.model.Exclusion exclusion : dependency.getExclusions() )
        {
            exclusions.add( convert( exclusion ) );
        }

        Dependency result = new Dependency( artifact, dependency.getScope(), dependency.isOptional(), exclusions );

        return result;
    }
View Full Code Here


            {
                excl.add( toExclusion( exclusion ) );
            }
        }

        return new Dependency( result, artifact.getScope(), artifact.isOptional(), excl );
    }
View Full Code Here

        for ( org.apache.maven.model.Exclusion exclusion : dependency.getExclusions() )
        {
            exclusions.add( toExclusion( exclusion ) );
        }

        Dependency result = new Dependency( artifact, dependency.getScope(), dependency.isOptional(), exclusions );

        return result;
    }
View Full Code Here

            artifactRequest.setRepositories(repositories);

            DependencyFilter classpathFilter = DependencyFilterUtils.classpathFilter(JavaScopes.COMPILE);

            CollectRequest collectRequest = new CollectRequest();
            collectRequest.setRoot(new Dependency(artifact, JavaScopes.COMPILE));
            collectRequest.setRepositories(repositories);

            DependencyRequest dependencyRequest = new DependencyRequest( collectRequest, classpathFilter );

            return system.resolveDependencies(session, dependencyRequest);
View Full Code Here

  private Dependency createDependency(Map<?, ?> dependencyMap,
      List<Exclusion> exclusions) {
    Artifact artifact = createArtifact(dependencyMap);
    if (isTransitive(dependencyMap)) {
      return new Dependency(artifact, JavaScopes.COMPILE, false, exclusions);
    }
    else {
      return new Dependency(artifact, JavaScopes.COMPILE, null, WILDCARD_EXCLUSION);
    }
  }
View Full Code Here

  }

  private List<Dependency> getDependencies(DependencyResult dependencyResult) {
    List<Dependency> dependencies = new ArrayList<Dependency>();
    for (ArtifactResult artifactResult : dependencyResult.getArtifactResults()) {
      dependencies.add(new Dependency(artifactResult.getArtifact(),
          JavaScopes.COMPILE));
    }
    return dependencies;
  }
View Full Code Here

   */
  public List<Dependency> getManagedDependencies() {
    List<Dependency> result = new ArrayList<Dependency>();
    for (org.springframework.boot.dependency.tools.Dependency dependency : this.dependencies) {
      Artifact artifact = asArtifact(dependency);
      result.add(new Dependency(artifact, JavaScopes.COMPILE));
    }
    return result;
  }
View Full Code Here

    //<editor-fold defaultstate="collapsed" desc="Parsing">
    /////////// Parsing ///////////////////////////////////
    // visible for testing
    static Dependency toDependency(String coords, String type) {
        return new Dependency(coordsToArtifact(coords, type), JavaScopes.RUNTIME, false, getExclusions(coords));
    }
View Full Code Here

    static Dependency toDependency(String coords, String type) {
        return new Dependency(coordsToArtifact(coords, type), JavaScopes.RUNTIME, false, getExclusions(coords));
    }

    private static Dependency toDependency(Artifact artifact) {
        return new Dependency(artifact, JavaScopes.RUNTIME, false, null);
    }
View Full Code Here

            return null;

        final StringBuilder buffer = new StringBuilder(128);
        buffer.append(toString(a));

        final Dependency d = node.getDependency();

//        if (d != null && d.getScope().length() > 0) {
//            buffer.append(" [").append(d.getScope());
//            if (d.isOptional())
//                buffer.append(", optional");
//            buffer.append("]");
//        }

        final String premanagedVersion = DependencyManagerUtils.getPremanagedVersion(node);
        if (premanagedVersion != null && !premanagedVersion.equals(a.getBaseVersion()))
            buffer.append(" (version managed from ").append(premanagedVersion).append(")");

        final String premanagedScope = DependencyManagerUtils.getPremanagedScope(node);
        if (premanagedScope != null && !premanagedScope.equals(d.getScope()))
            buffer.append(" (scope managed from ").append(premanagedScope).append(")");

        final DependencyNode winner = (DependencyNode) node.getData().get(ConflictResolver.NODE_DATA_WINNER);
        if (winner != null && !ArtifactIdUtils.equalsId(a, winner.getArtifact())) {
            Artifact w = winner.getArtifact();
View Full Code Here

TOP

Related Classes of org.eclipse.aether.graph.Dependency

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.