public class Utils extends Object
| Constructor and Description |
|---|
Utils() |
| Modifier and Type | Method and Description |
|---|---|
static MavenDepTreeResults |
createDependencyTree(org.apache.maven.shared.dependency.graph.DependencyGraphBuilder dependencyGraphBuilder,
org.apache.maven.execution.MavenSession session,
org.apache.maven.project.MavenProject project)
Create the dependency tree for the given Maven project.
|
static com.fasterxml.jackson.databind.ObjectMapper |
createMapper()
Create an Object Mapper used to deserialize the dependency tree to a JSON file.
|
static String |
getGavString(org.apache.maven.artifact.Artifact artifact)
Get the node ID of the given Maven artifact.
|
public static com.fasterxml.jackson.databind.ObjectMapper createMapper()
public static MavenDepTreeResults createDependencyTree(org.apache.maven.shared.dependency.graph.DependencyGraphBuilder dependencyGraphBuilder, org.apache.maven.execution.MavenSession session, org.apache.maven.project.MavenProject project) throws org.apache.maven.shared.dependency.graph.DependencyGraphBuilderException
dependencyGraphBuilder - - A helper library that takes the project and session as inputs and constructs a Maven dependency treesession - - Maven execution sessionproject - - The Maven "project" we are currently working on, specifically as a submoduleorg.apache.maven.shared.dependency.graph.DependencyGraphBuilderException - if some of the dependencies could not be resolved.public static String getGavString(org.apache.maven.artifact.Artifact artifact)
artifact - - Maven artifactCopyright © 2023 JFrog. All rights reserved.