Package org.apache.maven.archiver
Class PomPropertiesUtil
java.lang.Object
org.apache.maven.archiver.PomPropertiesUtil
This class is responsible for creating the
pom.properties file
in META-INF/maven/${groupId}/${artifactId}.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcreatePomProperties(org.apache.maven.execution.MavenSession session, org.apache.maven.project.MavenProject project, org.codehaus.plexus.archiver.Archiver archiver, File customPomPropertiesFile, File pomPropertiesFile, boolean forceCreation) Creates the pom.properties file.private voidcreatePropertiesFile(Properties properties, File outputFile, boolean forceCreation) private PropertiesloadPropertiesFile(File file) private booleansameContents(Properties props, File file)
-
Constructor Details
-
PomPropertiesUtil
public PomPropertiesUtil()
-
-
Method Details
-
loadPropertiesFile
- Throws:
IOException
-
sameContents
- Throws:
IOException
-
createPropertiesFile
private void createPropertiesFile(Properties properties, File outputFile, boolean forceCreation) throws IOException - Throws:
IOException
-
createPomProperties
public void createPomProperties(org.apache.maven.execution.MavenSession session, org.apache.maven.project.MavenProject project, org.codehaus.plexus.archiver.Archiver archiver, File customPomPropertiesFile, File pomPropertiesFile, boolean forceCreation) throws IOException Creates the pom.properties file.- Parameters:
session-MavenSessionproject-MavenProjectarchiver-ArchivercustomPomPropertiesFile- optional custom pom properties filepomPropertiesFile- The pom properties file.forceCreation- force creation true/false- Throws:
org.codehaus.plexus.archiver.ArchiverException- archiver exception.IOException- IO exception.
-