public class MavenUtils extends Object
| Constructor and Description |
|---|
MavenUtils() |
| Modifier and Type | Method and Description |
|---|---|
static org.apache.maven.model.Model |
getPomModel(File artifact) |
static org.apache.maven.model.Model |
getPomModelFromFile(File pomFile)
Returns the
Model from a given artifact folder |
static URL |
getPomUrlFromJar(File artifactFile)
Finds the URL of the pom file within the artifact file.
|
public static URL getPomUrlFromJar(File artifactFile)
artifactFile - the artifact file to search for the pom file.public static org.apache.maven.model.Model getPomModel(File artifact)
artifact - a maven artifact that may be a directory following the mule deployable archive structure or a compressed
file.public static org.apache.maven.model.Model getPomModelFromFile(File pomFile)
Model from a given artifact folderpomFile - file containing the pom content.Model from the pom fileBundleDescriptorCreationException - if the file does not exist or the file can't be loadedCopyright © 2018 MuleSoft, Inc.. All rights reserved.