Class MavenUtils
java.lang.Object
org.mule.maven.pom.parser.internal.util.MavenUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetAttribute(org.codehaus.plexus.util.xml.Xpp3Dom tag, String attributeName) static org.apache.maven.model.ModelgetPomModel(File artifact) static org.apache.maven.model.ModelgetPomModelFolder(File artifactFolder) Returns theModelfrom a given artifact folderstatic org.apache.maven.model.ModelgetPomModelFromFile(File pomFile) Returns theModelfrom a given artifact folderstatic org.apache.maven.model.ModelgetPomModelFromJar(URL pomUrl) Returns theModelfrom a given artifact folder
-
Constructor Details
-
MavenUtils
public MavenUtils()
-
-
Method Details
-
getPomModel
- Parameters:
artifact- a maven artifact that may be a directory following the mule deployable archive structure a compressed file or file pointing to a pom.- Returns:
- the pom model for the artifact.
-
getPomModelFolder
Returns theModelfrom a given artifact folder- Parameters:
artifactFolder- folder containing the exploded artifact file.- Returns:
- the
Modelfrom the pom file if available - Throws:
BundleDescriptorCreationException- if the folder does not contain a pom file or the file can' be loaded
-
getPomModelFromJar
Returns theModelfrom a given artifact folder- Parameters:
pomUrl- url pointing to the artifact content.- Returns:
- the
Modelfrom the pom file if available - Throws:
BundleDescriptorCreationException- if the artifact jar does not contain a pom file or the file can' be loaded
-
getPomModelFromFile
Returns theModelfrom a given artifact folder- Parameters:
pomFile- file containing the pom content.- Returns:
- the
Modelfrom the pom file - Throws:
BundleDescriptorCreationException- if the file does not exist or the file can't be loaded
-
getAttribute
-