Class PomPropertiesUtil


  • public class PomPropertiesUtil
    extends Object
    This class is responsible for creating the pom.properties file in META-INF/maven/${groupId}/${artifactId}.
    • Constructor Detail

      • PomPropertiesUtil

        public PomPropertiesUtil()
    • Method Detail

      • createPomProperties

        public void createPomProperties​(MavenSession session,
                                        MavenProject project,
                                        Archiver archiver,
                                        File customPomPropertiesFile,
                                        File pomPropertiesFile,
                                        boolean forceCreation)
                                 throws IOException
        Creates the pom.properties file.
        Parameters:
        session - MavenSession
        project - MavenProject
        archiver - Archiver
        customPomPropertiesFile - optional custom pom properties file
        pomPropertiesFile - The pom properties file.
        forceCreation - force creation true/false
        Throws:
        ArchiverException - archiver exception.
        IOException - IO exception.