Class MojoUtils


  • public class MojoUtils
    extends Object
    Author:
    softphone
    • Constructor Detail

      • MojoUtils

        protected MojoUtils()
    • Method Detail

      • readModel

        public static org.apache.maven.model.Model readModel​(InputStream pomFile)
                                                      throws org.apache.maven.plugin.MojoExecutionException
        Parameters:
        pomFile -
        Returns:
        Throws:
        org.apache.maven.plugin.MojoExecutionException
      • getArtifactCoordinateFromXmlInJar

        public static <T> Optional<T> getArtifactCoordinateFromXmlInJar​(JarFile jarFile,
                                                                        java.util.function.Function<org.apache.maven.model.Model,​T> creator)
                                                                 throws IOException,
                                                                        org.apache.maven.plugin.MojoExecutionException
        Type Parameters:
        T -
        Parameters:
        jarFile -
        creator -
        Returns:
        Artifact
        Throws:
        IOException
        org.apache.maven.plugin.MojoExecutionException