Class PomModelResolver
- java.lang.Object
-
- org.guvnor.m2repo.backend.server.helpers.PomModelResolver
-
public class PomModelResolver extends Object
-
-
Constructor Summary
Constructors Constructor Description PomModelResolver()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.appformer.maven.support.PomModelresolveFromJar(InputStream jarStream)Construct a PomModel from a JAR by parsing first the pom.xml file within the JAR and if not present a pom.properties file in the JAR.static org.appformer.maven.support.PomModelresolveFromPom(InputStream pomStream)Construct a PomModel from a pom.xml file
-
-
-
Method Detail
-
resolveFromJar
public static org.appformer.maven.support.PomModel resolveFromJar(InputStream jarStream)
Construct a PomModel from a JAR by parsing first the pom.xml file within the JAR and if not present a pom.properties file in the JAR.- Parameters:
jarStream- InputStream to the JAR- Returns:
- a populated PomModel or null if neither pom.xml or pom.properties existed in the JAR
-
resolveFromPom
public static org.appformer.maven.support.PomModel resolveFromPom(InputStream pomStream) throws Exception
Construct a PomModel from a pom.xml file- Parameters:
pomStream- InputStream to the pom.xml file- Returns:
- a populated PomModel or throws exception if the file could not be parsed or deployed
- Throws:
Exception
-
-