Class PomFileGenerator

All Implemented Interfaces:
Generator, ResourceProvider

public class PomFileGenerator extends AbstractGenerator

A Generator (mainly) for POM files. In response to requests for PomFile it generates a maven Model with basic information. The group is set to the value of the property MvnProperties.GroupId if it is defined. The artifact id is set to the property MvnProperties.ArtifactId or the name of the project, if MvnProperties.ArtifactId is not defined. The version is set to the value of the property Project.Properties.Version.

This basic model is passed to adaptPom(Consumer) where it can be adapted. as the project requires. Finally, the model is written to the POM file.

In addition to the PomFile requests, this generator also handles requests for MvnRepoDependency. This reflects that a project that has a POM file is obviously intended to be released as a maven artifact. Other projects in a multi-project build will therefore eventually depend on the maven artifact "to be released".