public final class Bom extends Object
| Constructor and Description |
|---|
Bom(String coordinates,
com.google.common.collect.ImmutableList<org.eclipse.aether.artifact.Artifact> artifacts) |
| Modifier and Type | Method and Description |
|---|---|
String |
getCoordinates()
Returns group:artifact:version.
|
com.google.common.collect.ImmutableList<org.eclipse.aether.artifact.Artifact> |
getManagedDependencies()
Returns the artifacts found in this BOM's managedDependencies section.
|
static Bom |
readBom(Path pomFile) |
static Bom |
readBom(String coordinates)
Parses the dependencyManagement section of an artifact and returns the artifacts
included there.
|
static Bom |
readBom(String coordinates,
List<String> mavenRepositoryUrls)
Parses the dependencyManagement section of an artifact and returns
the artifacts included there.
|
static boolean |
shouldSkipBomMember(org.eclipse.aether.artifact.Artifact artifact)
Returns true if the
artifact in BOM should be skipped for checks. |
public Bom(String coordinates, com.google.common.collect.ImmutableList<org.eclipse.aether.artifact.Artifact> artifacts)
coordinates - group:artifact:versionartifacts - the artifacts found in this BOM's managedDependencies sectionpublic com.google.common.collect.ImmutableList<org.eclipse.aether.artifact.Artifact> getManagedDependencies()
public String getCoordinates()
public static Bom readBom(Path pomFile) throws MavenRepositoryException
MavenRepositoryExceptionpublic static Bom readBom(String coordinates, List<String> mavenRepositoryUrls) throws org.eclipse.aether.resolution.ArtifactDescriptorException
mavenRepositoryUrls - URLs of Maven repositories to search for BOM membersorg.eclipse.aether.resolution.ArtifactDescriptorExceptionpublic static Bom readBom(String coordinates) throws org.eclipse.aether.resolution.ArtifactDescriptorException
org.eclipse.aether.resolution.ArtifactDescriptorExceptionpublic static boolean shouldSkipBomMember(org.eclipse.aether.artifact.Artifact artifact)
artifact in BOM should be skipped for checks.Copyright © 2018–2021 Google LLC.. All rights reserved.