Java 类org.springframework.boot.cli.compiler.dependencies.Dependency.Exclusion 实例源码

项目:https-github.com-g0t4-jenkins2-course-spring-boot    文件:MavenModelDependencyManagement.java   
private static List<Dependency> extractDependenciesFromModel(Model model) {
    List<Dependency> dependencies = new ArrayList<Dependency>();
    for (org.apache.maven.model.Dependency mavenDependency : model
            .getDependencyManagement().getDependencies()) {
        List<Exclusion> exclusions = new ArrayList<Exclusion>();
        for (org.apache.maven.model.Exclusion mavenExclusion : mavenDependency
                .getExclusions()) {
            exclusions.add(new Exclusion(mavenExclusion.getGroupId(),
                    mavenExclusion.getArtifactId()));
        }
        Dependency dependency = new Dependency(mavenDependency.getGroupId(),
                mavenDependency.getArtifactId(), mavenDependency.getVersion(),
                exclusions);
        dependencies.add(dependency);
    }
    return dependencies;
}
项目:spring-boot-concourse    文件:MavenModelDependencyManagement.java   
private static List<Dependency> extractDependenciesFromModel(Model model) {
    List<Dependency> dependencies = new ArrayList<Dependency>();
    for (org.apache.maven.model.Dependency mavenDependency : model
            .getDependencyManagement().getDependencies()) {
        List<Exclusion> exclusions = new ArrayList<Exclusion>();
        for (org.apache.maven.model.Exclusion mavenExclusion : mavenDependency
                .getExclusions()) {
            exclusions.add(new Exclusion(mavenExclusion.getGroupId(),
                    mavenExclusion.getArtifactId()));
        }
        Dependency dependency = new Dependency(mavenDependency.getGroupId(),
                mavenDependency.getArtifactId(), mavenDependency.getVersion(),
                exclusions);
        dependencies.add(dependency);
    }
    return dependencies;
}
项目:contestparser    文件:MavenModelDependencyManagement.java   
private static List<Dependency> extractDependenciesFromModel(Model model) {
    List<Dependency> dependencies = new ArrayList<Dependency>();
    for (org.apache.maven.model.Dependency mavenDependency : model
            .getDependencyManagement().getDependencies()) {
        List<Exclusion> exclusions = new ArrayList<Exclusion>();
        for (org.apache.maven.model.Exclusion mavenExclusion : mavenDependency
                .getExclusions()) {
            exclusions.add(new Exclusion(mavenExclusion.getGroupId(),
                    mavenExclusion.getArtifactId()));
        }
        Dependency dependency = new Dependency(mavenDependency.getGroupId(),
                mavenDependency.getArtifactId(), mavenDependency.getVersion(),
                exclusions);
        dependencies.add(dependency);
    }
    return dependencies;
}