@ThreadSafe
public final class PomUtils
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static void |
analyzePOM(Dependency dependency,
java.io.File pomFile)
Reads in the pom file and adds elements as evidence to the given
dependency.
|
static Model |
readPom(java.io.File file)
Reads in the specified POM and converts it to a Model.
|
static Model |
readPom(java.lang.String path,
java.util.jar.JarFile jar)
Retrieves the specified POM from a jar file and converts it to a Model.
|
public static Model readPom(java.io.File file) throws AnalysisException
file - the pom.xml fileAnalysisException - is thrown if there is an exception extracting
or parsing the POM Model objectpublic static Model readPom(java.lang.String path, java.util.jar.JarFile jar) throws AnalysisException
path - the path to the pom.xml file within the jar filejar - the jar file to extract the pom fromAnalysisException - is thrown if there is an exception extracting
or parsing the POM Model objectpublic static void analyzePOM(Dependency dependency, java.io.File pomFile) throws AnalysisException
dependency - the dependency being analyzedpomFile - the pom file to readAnalysisException - is thrown if there is an exception parsing the
pomCopyright© 2012-21 Jeremy Long. All Rights Reserved.