Class PomPropertiesUtil


  • public class PomPropertiesUtil
    extends java.lang.Object
    This class is responsible for creating the pom.properties file.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void createPomProperties​(org.apache.maven.execution.MavenSession session, org.apache.maven.project.MavenProject project, org.codehaus.plexus.archiver.Archiver archiver, java.io.File customPomPropertiesFile, java.io.File pomPropertiesFile, boolean forceCreation)
      Creates the pom.properties file.
      private void createPropertiesFile​(org.apache.maven.execution.MavenSession session, java.util.Properties properties, java.io.File outputFile, boolean forceCreation)  
      private java.util.Properties loadPropertiesFile​(java.io.File file)  
      private boolean sameContents​(java.util.Properties props, java.io.File file)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PomPropertiesUtil

        public PomPropertiesUtil()
    • Method Detail

      • loadPropertiesFile

        private java.util.Properties loadPropertiesFile​(java.io.File file)
                                                 throws java.io.IOException
        Throws:
        java.io.IOException
      • sameContents

        private boolean sameContents​(java.util.Properties props,
                                     java.io.File file)
                              throws java.io.IOException
        Throws:
        java.io.IOException
      • createPropertiesFile

        private void createPropertiesFile​(org.apache.maven.execution.MavenSession session,
                                          java.util.Properties properties,
                                          java.io.File outputFile,
                                          boolean forceCreation)
                                   throws java.io.IOException
        Throws:
        java.io.IOException
      • createPomProperties

        public void createPomProperties​(org.apache.maven.execution.MavenSession session,
                                        org.apache.maven.project.MavenProject project,
                                        org.codehaus.plexus.archiver.Archiver archiver,
                                        java.io.File customPomPropertiesFile,
                                        java.io.File pomPropertiesFile,
                                        boolean forceCreation)
                                 throws java.io.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:
        org.codehaus.plexus.archiver.ArchiverException - archiver exception.
        java.io.IOException - IO exception.