Class PomModelResolver


  • public class PomModelResolver
    extends Object
    • Constructor Detail

      • PomModelResolver

        public PomModelResolver()
    • 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