Example usage for org.springframework.ide.eclipse.boot.core Bom getRepos

List of usage examples for org.springframework.ide.eclipse.boot.core Bom getRepos

Introduction

In this page you can find the example usage for org.springframework.ide.eclipse.boot.core Bom getRepos.

Prototype

public List<Repo> getRepos() 

Source Link

Usage

From source file:org.springframework.ide.eclipse.boot.core.internal.MavenSpringBootProject.java

private void createBomIfNeeded(Document pom, Bom bom) {
    if (bom != null) {
        Element bomList = ensureDependencyMgmtSection(pom);
        Element existing = PomEdits.findChild(bomList, DEPENDENCY, childEquals(GROUP_ID, bom.getGroupId()),
                childEquals(ARTIFACT_ID, bom.getArtifactId()));
        if (existing == null) {
            createBom(bomList, bom);/*from  w  w  w .  j  a va 2  s  .  co m*/
            addReposIfNeeded(pom, bom.getRepos());
        }
    }
}